1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Last plugin LAN clean-up (#50) for now.

This commit is contained in:
Tijn Kuyper
2012-12-19 11:37:45 +01:00
parent 43be46176f
commit 2f7aa5a40d
11 changed files with 60 additions and 53 deletions

View File

@@ -1570,7 +1570,7 @@ class e107plugin
}
/**
* Process XML Tag <LanguageFiles>
* Process XML Tag <LanguageFiles> // DEPRECATED - using _install _log and _global
* @param object $function
* @param object $tag
* @return none
@@ -1581,7 +1581,7 @@ class e107plugin
$updated = false;
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_install.php"; // always check for English so we have a fall-bak
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_install.php"; // always check for English so we have a fall-back
$path_b = e_PLUGIN.$this->plugFolder."/languages/English/English_install.php";
if(file_exists($path_a) || file_exists($path_b))
@@ -1589,7 +1589,7 @@ class e107plugin
e107::lan($this->plugFolder,'install',true);
}
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_global.php"; // always check for English so we have a fall-bak
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_global.php"; // always check for English so we have a fall-back
$path_b = e_PLUGIN.$this->plugFolder."/languages/English/English_global.php";
if(file_exists($path_a) || file_exists($path_b))
@@ -1612,7 +1612,7 @@ class e107plugin
}
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_log.php"; // always check for English so we have a fall-bak
$path_a = e_PLUGIN.$this->plugFolder."/languages/English_log.php"; // always check for English so we have a fall-back
$path_b = e_PLUGIN.$this->plugFolder."/languages/English/English_log.php";
if(file_exists($path_a) || file_exists($path_b))
@@ -2572,17 +2572,17 @@ class e107plugin
}
// For BC.
$ret['administration']['icon'] = str_replace($plugName."/","",$eplug_icon);
$ret['administration']['icon'] = str_replace($plugName."/","",$eplug_icon);
$ret['administration']['caption'] = varset($eplug_caption);
$ret['administration']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
$ret['administration']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
$ret['administration']['configFile'] = varset($eplug_conffile);
if (varset($eplug_conffile))
{
$ret['adminLinks']['link'][0]['@attributes']['url'] = varset($eplug_conffile);
$ret['adminLinks']['link'][0]['@attributes']['description'] = LAN_CONFIGURE;
$ret['adminLinks']['link'][0]['@attributes']['icon'] = str_replace($plugName."/","",$eplug_icon);
$ret['adminLinks']['link'][0]['@attributes']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
$ret['adminLinks']['link'][0]['@attributes']['icon'] = str_replace($plugName."/","",$eplug_icon);
$ret['adminLinks']['link'][0]['@attributes']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
$ret['adminLinks']['link'][0]['@attributes']['primary'] = 'true';
}
if (vartrue($eplug_link) && varset($eplug_link_name) && varset($eplug_link_url))