1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Added extra exclusion to Plugin Language-File checker.

This commit is contained in:
Cameron
2015-06-11 09:49:21 -07:00
parent 6337d9410c
commit 9af51e21db

View File

@@ -1713,8 +1713,8 @@ class pluginLanguage
private $unused = array(); private $unused = array();
private $unsure = array(); private $unsure = array();
private $excludeLans = array('CORE_LC', 'CORE_LC2'); private $excludeLans = array('CORE_LC', 'CORE_LC2', 'e_LAN', 'e_LANGUAGE', 'e_LANGUAGEDIR', 'LAN', 'LANGUAGE');
private $useSimilar = false; private $useSimilar = false;
@@ -2085,7 +2085,7 @@ class pluginLanguage
{ {
foreach($match[1] as $lan) foreach($match[1] as $lan)
{ {
if($lan != 'e_LANGUAGE' && $lan != 'e_LANGUAGEDIR' && $lan != 'LAN' && $lan != 'LANGUAGE') if(!in_array($lan,$this->excludeLans))
{ {
$this->scriptDefs[] = $lan; $this->scriptDefs[] = $lan;
$this->scriptDefsData[] = array('file'=>$path, 'line'=>$ln, 'lan'=>$lan, 'value'=>$this->lanDefsRaw[$lan]); $this->scriptDefsData[] = array('file'=>$path, 'line'=>$ln, 'lan'=>$lan, 'value'=>$this->lanDefsRaw[$lan]);