diff options
author | rub <rub@piwigo.org> | 2008-03-01 22:02:40 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-03-01 22:02:40 +0000 |
commit | 1f271ceca3e74c7b077f8462086db020121e81c3 (patch) | |
tree | 3ec2ee8797d6eb82dfe3abe3a7d2c60e73da39cc /include/template.class.php | |
parent | 352f097fc7aaa7ecdc4932d36351727f88f0e2db (diff) |
0000810: Use of new template engine [smarty]
New way for TAG_INPUT_ENABLED
git-svn-id: http://piwigo.org/svn/trunk@2239 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r-- | include/template.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |