- 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:
rvelices
2007-01-25 02:18:56 +00:00
parent 4472ba6ed4
commit 80020dd756
12 changed files with 357 additions and 290 deletions
+18 -1
View File
@@ -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;