aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
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