mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Fixes #2331 - themecss pref was being deleted when saving theme prefs.
This commit is contained in:
@@ -2496,6 +2496,9 @@ class themeHandler
|
||||
// $this->showThemes('admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo add admin log
|
||||
*/
|
||||
function setStyle()
|
||||
{
|
||||
global $pref,$e107cache;
|
||||
@@ -2503,16 +2506,21 @@ class themeHandler
|
||||
$ns = e107::getRender();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
//TODO adminlog
|
||||
e107::getConfig()->setPosted('themecss', $_POST['themecss'])->setPosted('sitetheme_deflayout', $_POST['layout_default']);
|
||||
$themeCSS = vartrue($_POST['themecss'],'style.css');
|
||||
$themeLayout = vartrue($_POST['layout_default'], 'default');
|
||||
|
||||
e107::getConfig()->setPosted('themecss',$themeCSS)->setPosted('sitetheme_deflayout', $themeLayout);
|
||||
|
||||
$msg = $this->setThemeConfig();
|
||||
|
||||
if($msg)
|
||||
{
|
||||
$mes->add(TPVLAN_37, E_MESSAGE_SUCCESS);
|
||||
if(is_array($msg))
|
||||
$mes->add($msg[0], $msg[1]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function setAdminStyle()
|
||||
|
Reference in New Issue
Block a user