aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php74
1 files changed, 0 insertions, 74 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index b6c37cc0f..a73e968ca 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -929,80 +929,6 @@ SELECT name
return $groupname;
}
-/**
- * return the file path of the given language filename, depending on the
- * availability of the file
- *
- * in descending order of preference:
- * param language, user language, default language
- * PhpWebGallery default language.
- *
- * @param string filename
- * @param string dirname
- * @param string language
- * @return string filepath
- */
-function get_language_filepath($filename, $dirname = '', $language = '')
-{
- global $user, $conf;
-
- if (empty($dirname))
- {
- $dirname = PHPWG_ROOT_PATH;
- }
- $dirname .= 'language'.'/';
-
- $dir_methods = array();
-
- if (!empty($language))
- {
- $dir_methods[] = 1;
- }
-
- $dir_methods[] = 2;
- $dir_methods[] = 3;
- $dir_methods[] = 4;
-
- foreach ($dir_methods as $dir_method)
- {
- switch ($dir_method)
- {
- case '1':
- {
- $directory = $dirname.$language;
- break;
- }
- case '2':
- {
- $directory = $dirname.$user['language'];
- break;
- }
- case '3':
- {
- $directory = $dirname.get_default_language();
- break;
- }
- case '4':
- default:
- {
- $directory = $dirname.PHPWG_DEFAULT_LANGUAGE;
- break;
- }
- {
- $directory = '.';
- }
- }
-
- $filepath = $directory.'/'.$filename;
-
- if (file_exists($filepath))
- {
- return $filepath;
- }
- }
-
- return false;
-}
/**
* returns the auto login key or false on error