Skip to content

Commit

Permalink
html bug fixed: the sentence "mod adviser enabled" must be add in the…
Browse files Browse the repository at this point in the history
… page!

git-svn-id: http://piwigo.org/svn/trunk@1299 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed May 5, 2006
1 parent aafda98 commit c32f43f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/common.inc.php
Expand Up @@ -208,19 +208,6 @@
.'/themeconf.inc.php'
);

if (is_adviser())
{
ob_start();// buffer output so that cookies work
echo '
<div class="titrePage">
<h2>
<div style="text-align:center;">'.$lang['adviser_mode_enabled'].'
</div>
</h2>
</div>
';
}

// template instance
$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);
?>
10 changes: 10 additions & 0 deletions include/page_header.php
Expand Up @@ -52,6 +52,16 @@
'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 ) )
{
Expand Down
3 changes: 3 additions & 0 deletions template/yoga/header.tpl
Expand Up @@ -29,5 +29,8 @@ the "text/nonsense" prevents gecko based browsers to load it -->

<body id="{BODY_ID}">
<div id="the_page">
<div class="titrePage">
<h2 style="text-align:center">{ADVISER_ENABLED}</h2>
</div>

{PAGE_BANNER}

0 comments on commit c32f43f

Please sign in to comment.