mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Issue #1481 - non-core plugins were appearing in language-pack zip file.
This commit is contained in:
@@ -739,7 +739,7 @@ class lancheck
|
|||||||
* @param string $filter
|
* @param string $filter
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
private function getFilePaths($path, $language, $restrict=array())
|
public function getFilePaths($path, $language, $restrict=array())
|
||||||
{
|
{
|
||||||
$fl = e107::getFile();
|
$fl = e107::getFile();
|
||||||
|
|
||||||
@@ -773,7 +773,7 @@ class lancheck
|
|||||||
{
|
{
|
||||||
foreach($restrict as $accept)
|
foreach($restrict as $accept)
|
||||||
{
|
{
|
||||||
if(strpos($p, $accept)!==false)
|
if(strpos($p, '/'.$accept.'/')!==false)
|
||||||
{
|
{
|
||||||
|
|
||||||
$newlist[] = $p;
|
$newlist[] = $p;
|
||||||
|
Reference in New Issue
Block a user