1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +02:00

Updating of deprecated method usage. Removal of old files. Log tests added.

This commit is contained in:
Cameron
2020-12-18 09:39:02 -08:00
parent 582c48fc21
commit f5153bf640
55 changed files with 509 additions and 3218 deletions

View File

@@ -325,7 +325,7 @@ class user_mailout
if (is_numeric($selectVals['email_to']))
{
$_to = LAN_MAILOUT_23.e107::getUserClass()->uc_get_classname(intval($selectVals['email_to']));
$_to = LAN_MAILOUT_23.e107::getUserClass()->getName(intval($selectVals['email_to']));
}
else
{

View File

@@ -56,9 +56,11 @@ if (isset($_POST['update_theme']))
$themeeditclass = intval($_POST['themeeditclass']);
if (($newThemes != $pref['allowed_themes']) || ($themeeditclass != $pref['allow_theme_select']))
{
$pref['allowed_themes'] = $newThemes;
$pref['allow_theme_select'] = $themeeditclass;
save_prefs();
$cfg = e107::getConfig();
$cfg->set('allowed_themes', $newThemes);
$cfg->set('allow_theme_select', $themeeditclass);
$cfg->save(true,true,true);
$woffle = LAN_UMENU_THEME_8.$pref['allowed_themes'].'[!br!]'.LAN_UMENU_THEME_9.$pref['allow_theme_select'];
e107::getLog()->add('UTHEME_01',$woffle,E_LOG_INFORMATIVE,'');
}