diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-01-25 02:18:56 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-01-25 02:18:56 +0000 |
commit | 80020dd7564f25f4af5d994df5690b1088456b41 (patch) | |
tree | 9f588b38e69054be1c5c4e01b899117c1863cc93 /include/template.php | |
parent | 4472ba6ed4b6e079c6f98968354a3527f8af8ec8 (diff) |
- user profiles available from admin page
- user creation from admin page with email (bug 514)
- some language cleanup
- small template enhancements
- php syntax corrections (my mistake)
git-svn-id: http://piwigo.org/svn/trunk@1753 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.php')
-rw-r--r-- | include/template.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/template.php b/include/template.php index 276464a22..d5e296edd 100644 --- a/include/template.php +++ b/include/template.php @@ -102,6 +102,14 @@ class Template { } /** + * Sets the template filename for handle. + */ + function set_filename($handle, $filename) + { + return $this->set_filenames( array($handle=>$filename) ); + } + + /** * Sets the template filenames for handles. $filename_array should be a * hash of handle => filename pairs. */ @@ -115,7 +123,16 @@ class Template { reset($filename_array); while(list($handle, $filename) = each($filename_array)) { - $this->files[$handle] = $this->make_filename($filename); + if (is_null($filename)) + { + unset( $this->files[$handle] ); + } + else + { + $this->files[$handle] = $this->make_filename($filename); + } + unset($this->compiled_code[$handle]); + unset($this->uncompiled_code[$handle]); } return true; |