aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/page_header.php4
-rw-r--r--include/template.class.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/include/page_header.php b/include/page_header.php
index cd51f5031..8f6e1a87b 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $Id$
@@ -52,8 +52,6 @@ $template->assign_vars(
'LANG'=>$lang_info['code'],
'DIR'=>$lang_info['direction'],
- 'TAG_INPUT_ENABLED' =>
- ((is_adviser()) ? 'disabled onclick="return false;"' : ''),
'U_HOME' => make_index_url(),
));
diff --git a/include/template.class.php b/include/template.class.php
index 1afdb655c..62a5a4cfc 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -239,10 +239,14 @@ class Template {
if ($is_new)
{
$this->smarty->assign( 'ROOT_URL', get_root_url() );
+ $this->smarty->assign( 'TAG_INPUT_ENABLED',
+ ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''));
$v = $this->smarty->fetch($this->files[$handle], null, null, false);
}
else
{
+ $this->_old->assign_vars(array('TAG_INPUT_ENABLED' =>
+ ((is_adviser()) ? 'disabled onclick="return false;"' : '')));
$this->_old->set_filename( $handle, $this->files[$handle] );
$v = $this->_old->parse($handle, true);
}