From ef31203f4858210e7548f1f58d392c25ca4464b2 Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 5 May 2006 20:09:51 +0000 Subject: html bug fixed: the sentence "mod adviser enabled" must be add in the page! svn merge -r1298:1299 from trunk git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1300 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/common.inc.php | 13 ------------- include/page_header.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/common.inc.php b/include/common.inc.php index 8aeafb7bf..005297d25 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -208,19 +208,6 @@ include( .'/themeconf.inc.php' ); -if (is_adviser()) -{ - ob_start();// buffer output so that cookies work - echo ' -
-

-
'.$lang['adviser_mode_enabled'].' -
-

-
- '; -} - // template instance $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']); ?> diff --git a/include/page_header.php b/include/page_header.php index 36b35c4ce..c807a5250 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -56,6 +56,16 @@ $template->assign_vars( 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled' : '') )); +if (is_adviser()) +{ + $template->assign_vars( + array( + 'ADVISER_ENABLED' => $lang['adviser_mode_enabled'] + ) + ); +} + + // refresh if ( isset( $refresh ) and intval($refresh) >= 0 and isset( $url_link ) and isset( $redirect_msg ) ) { -- cgit v1.2.3