mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
- 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
This commit is contained in:
+18
-1
@@ -101,6 +101,14 @@ class Template {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
Reference in New Issue
Block a user