1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +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

@@ -1941,6 +1941,8 @@ function include_lan_admin($path)
//DEPRECATED - use e107::loadLanFiles();
function loadLanFiles($unitName, $type='runtime')
{
$info = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
e107::getMessage()->addDebug("Using deprecated function loanLanFiles(). Replace with e107::loadLanFiles().".print_a($info,true));
return e107::loadLanFiles($unitName, $type);
}