Minor bugs correction

git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas 2004-09-07 20:10:36 +00:00
parent 47a1e49c1e
commit eaad1d61d7
10 changed files with 35 additions and 26 deletions

View file

@ -277,7 +277,7 @@ function get_languages()
if (is_dir($path) and !is_link($path) and file_exists($path.'/iso.txt'))
{
list($language_name) = @file($path.'/iso.txt');
$languages[$file] = $language_name;
$languages[$language_name] = $file;
}
}
closedir($dir);
@ -354,16 +354,6 @@ function pwg_log( $file, $category, $picture = '' )
}
}
function templatize_array( $array, $global_array_name, $handle )
{
global $vtp, $lang, $page, $user, $conf;
foreach ( $array as $value ) {
if (isset(${$global_array_name}[$value]))
$vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] );
}
}
// format_date returns a formatted date for display. The date given in
// argument can be a unixdate (number of seconds since the 01.01.1970) or an
// american format (2003-09-15). By option, you can show the time. The