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

Issue #6: Remove and optimize (hardcoded) LANS

This commit is contained in:
Lóna Lore
2015-05-02 09:55:47 +02:00
parent e809a4f3aa
commit 4b3062d0fa
5 changed files with 134 additions and 73 deletions

View File

@@ -442,7 +442,8 @@ class cron_admin_ui extends e_admin_ui
$obj = new $class_name;
if (method_exists($obj, $method_name))
{
$mes->add("Executing config function <b>".$class_name." : ".$method_name."()</b>", E_MESSAGE_DEBUG);
$message = str_replace('[function]', $class_name." : ".$method_name, LAN_CRON_55);
$mes->add($message, E_MESSAGE_DEBUG);
if ($return == 'boolean')
{
call_user_func(array($obj, $method_name));
@@ -455,7 +456,8 @@ class cron_admin_ui extends e_admin_ui
}
else
{
$mes->add("Config function <b>".$method_name."()</b> NOT found.", E_MESSAGE_DEBUG);
$message = str_replace('[method]', $method_name."()", LAN_CRON_56);
$mes->add($message, E_MESSAGE_DEBUG);
}
}
return FALSE;