From 9c5f7e1087c9671f730ff950e617ca824beb3a6e Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 4 Apr 2016 17:33:51 -0700 Subject: [PATCH] Issue #1481 - non-core plugins were appearing in language-pack zip file. --- e107_admin/lancheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_admin/lancheck.php b/e107_admin/lancheck.php index bb7c66953..566976437 100644 --- a/e107_admin/lancheck.php +++ b/e107_admin/lancheck.php @@ -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;