From 213eb3b7367472633667c538fb2add7b14f4b012 Mon Sep 17 00:00:00 2001 From: nikrou Date: Mon, 15 Feb 2010 21:40:52 +0000 Subject: [PATCH] Bug 1426 fixed : admin help popup use gallery theme instead of admin theme merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.0@4894 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/goto/popuphelp.tpl | 12 ++++++++++++ include/common.inc.php | 3 ++- popuphelp.php | 1 + template/yoga/popuphelp.tpl | 13 ------------- 4 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 admin/template/goto/popuphelp.tpl delete mode 100644 template/yoga/popuphelp.tpl diff --git a/admin/template/goto/popuphelp.tpl b/admin/template/goto/popuphelp.tpl new file mode 100644 index 000000000..950e3ca0e --- /dev/null +++ b/admin/template/goto/popuphelp.tpl @@ -0,0 +1,12 @@ +
+{$HELP_CONTENT} +
+ + + diff --git a/include/common.inc.php b/include/common.inc.php index 9575338a5..7b892cbbc 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -168,7 +168,8 @@ if (is_a_guest()) } // template instance -if ( defined('IN_ADMIN') and IN_ADMIN ) +if (( defined('IN_ADMIN') and IN_ADMIN ) + or (defined('PWG_HELP') and PWG_HELP)) {// Admin template list($user['admin_template'], $user['admin_theme']) = explode ('/', $conf['admin_layout']); diff --git a/popuphelp.php b/popuphelp.php index 1f2a8ec44..4cb68327d 100644 --- a/popuphelp.php +++ b/popuphelp.php @@ -26,6 +26,7 @@ // +-----------------------------------------------------------------------+ define('PHPWG_ROOT_PATH','./'); +define('PWG_HELP', true); include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); // +-----------------------------------------------------------------------+ diff --git a/template/yoga/popuphelp.tpl b/template/yoga/popuphelp.tpl deleted file mode 100644 index ff810c680..000000000 --- a/template/yoga/popuphelp.tpl +++ /dev/null @@ -1,13 +0,0 @@ -{* $Id$ *} -
-{$HELP_CONTENT} -
- - -