1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-08 21:30:54 +02:00

Reduced the number of file includes. Only load admin language files when necessary.

This commit is contained in:
Cameron
2015-02-12 13:09:56 -08:00
parent b03abcff1f
commit 6811c479d1
4 changed files with 17 additions and 4 deletions

View File

@@ -943,6 +943,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
$plugs = e107::getObject('e107plugin');
if(vartrue($pref['plug_installed']))
{
foreach($pref['plug_installed'] as $plug=>$vers)
@@ -969,8 +971,12 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
{
continue;
}
loadLanFiles($plugin_path, 'admin');
if(!in_array($plugin_path, $pref['lan_global_list']))
{
e107::loadLanFiles($plugin_path, 'admin');
}
$att = $tag['@attributes'];