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