aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-09-07 20:10:36 +0000
committergweltas <gweltas@piwigo.org>2004-09-07 20:10:36 +0000
commiteaad1d61d71e48359fe7b3abfdd91f27f5f33a1b (patch)
treef4fc3d36d0c0bf43b336730d3ccb758adb3b96aa /include/functions.inc.php
parent47a1e49c1e7b09403ce567f30c31a15856a8fdae (diff)
Minor bugs correction
git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index afd4f87b0..1e4cc44c7 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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