aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-09-16 17:20:04 +0000
committerrvelices <rv-github@modusoptimus.com>2010-09-16 17:20:04 +0000
commit08da40be5fa88edd7661de77a11ae4955771d471 (patch)
tree7d2a4754174d447bc59049f5d230e9ddedc22dac
parent9ab609438f833f07d26ecbcbb901e25b57230b25 (diff)
bug 1852: html redirections fail on admin pages
git-svn-id: http://piwigo.org/svn/trunk@6944 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/functions.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 551ad72c0..822c36da0 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -579,6 +579,10 @@ function redirect_html( $url , $msg = '', $refresh_time = 0)
load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
$template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme());
}
+ elseif (defined('IN_ADMIN') and IN_ADMIN)
+ {
+ $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme());
+ }
if (empty($msg))
{