mirror of
https://github.com/e107inc/e107.git
synced 2025-04-16 02:26:25 +02:00
Detect and refresh language file lists when scanning plugin directories.
This commit is contained in:
parent
eff8293866
commit
bc777c7414
@ -36,11 +36,12 @@ if(is_array($pref['lan_log_list'])) //... and for any plugins which support it
|
||||
{
|
||||
foreach($pref['lan_log_list'] as $path => $file)
|
||||
{
|
||||
$file = str_replace('--LAN--', e_LANGUAGE, $file);
|
||||
|
||||
// echo "orig = ".$file." ";
|
||||
// $file = str_replace('--LAN--', e_LANGUAGE, $file);
|
||||
|
||||
//e107::lan($path,'log',true);
|
||||
e107::includeLan(e_PLUGIN.$path.'/languages/'.$file);
|
||||
// e107::includeLan(e_PLUGIN.$path.'/languages/'.$file);
|
||||
e107::includeLan(e_PLUGIN.$path.'/languages/'.e_LANGUAGE."_log.php");
|
||||
e107::includeLan(e_PLUGIN.$path.'/languages/'.e_LANGUAGE."/".e_LANGUAGE."_log.php");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1571,9 +1571,14 @@ class system_tools
|
||||
|
||||
$plg->buildAddonPrefLists();
|
||||
|
||||
$plgClass = e107::getPlugin();
|
||||
|
||||
|
||||
foreach($plg->getDetected() as $folder)
|
||||
{
|
||||
$plg->load($folder);
|
||||
$plgClass->plugFolder = $folder;
|
||||
$plgClass->XmlLanguageFiles('refresh');
|
||||
|
||||
$name = $plg->getName();
|
||||
$addons = $plg->getAddons();
|
||||
|
Loading…
x
Reference in New Issue
Block a user