mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
Added page refresh when changing admin theme.
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
|
||||||
| $Revision: 1.23 $
|
| $Revision: 1.24 $
|
||||||
| $Date: 2009-07-06 09:28:02 $
|
| $Date: 2009-07-07 02:25:05 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -58,6 +58,7 @@ class themeHandler{
|
|||||||
{
|
{
|
||||||
$this -> id = key($post);
|
$this -> id = key($post);
|
||||||
$this -> setAdminTheme();
|
$this -> setAdminTheme();
|
||||||
|
$this -> refreshPage('admin');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ class themeHandler{
|
|||||||
{
|
{
|
||||||
$this -> id = $_POST['curTheme'];
|
$this -> id = $_POST['curTheme'];
|
||||||
$this -> setAdminStyle();
|
$this -> setAdminStyle();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_POST['submit_style']))
|
if(isset($_POST['submit_style']))
|
||||||
@@ -682,6 +684,11 @@ class themeHandler{
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshPage($page=e_QUERY)
|
||||||
|
{
|
||||||
|
header("Location: ".e_SELF."?".$page);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
function themePreview()
|
function themePreview()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user