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:
@@ -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
|
||||
{
|
||||
|
@@ -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,'');
|
||||
}
|
||||
|
Reference in New Issue
Block a user