aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-02-15 21:36:36 +0000
committernikrou <nikrou@piwigo.org>2010-02-15 21:36:36 +0000
commit6992b275359c8073aebd123e7280b7d2154988b0 (patch)
treea535f3e5d7c186b63439590075a261bc2457bc48
parentc1d6177df9ebb853217958d91aba26f35f66a497 (diff)
Bug 1426 fixed : admin help popup use gallery theme instead of admin theme
git-svn-id: http://piwigo.org/svn/trunk@4893 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/popuphelp.tpl12
-rw-r--r--include/common.inc.php3
-rw-r--r--popuphelp.php1
-rw-r--r--template/yoga/popuphelp.tpl12
4 files changed, 15 insertions, 13 deletions
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 @@
+<div id="content" class="content">
+{$HELP_CONTENT}
+</div> <!-- content -->
+
+<ul class="categoryActions">
+ <li>
+ <a href="#" onclick="window.close();" title="{'Close this window'|@translate}">
+ <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/exit.png" class="button" alt="exit">
+ </a>
+ </li>
+</ul>
+
diff --git a/include/common.inc.php b/include/common.inc.php
index 8ef47b0a0..124625e4d 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -155,7 +155,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 1b2aaa1d3..000000000
--- a/template/yoga/popuphelp.tpl
+++ /dev/null
@@ -1,12 +0,0 @@
-<div id="content" class="content">
-{$HELP_CONTENT}
-</div> <!-- content -->
-
-<ul class="categoryActions">
- <li>
- <a href="#" onclick="window.close();" title="{'Close this window'|@translate}">
- <img src="{$ROOT_URL}{$themeconf.icon_dir}/exit.png" class="button" alt="exit">
- </a>
- </li>
-</ul>
-