aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-02-16 16:44:59 +0000
committerDamien Lallement <dams@mageia.org>2011-02-16 16:44:59 +0000
commit5e4d6875a027ba788f017e53186b8e275328820c (patch)
treeab5dc1152057d92e5f29cba907bd0d90b61ffa91 /langs.php
parent9f9914aaab2581a452e1ad4d85fe13059614f4c8 (diff)
downloadwww-5e4d6875a027ba788f017e53186b8e275328820c.tar
www-5e4d6875a027ba788f017e53186b8e275328820c.tar.gz
www-5e4d6875a027ba788f017e53186b8e275328820c.tar.bz2
www-5e4d6875a027ba788f017e53186b8e275328820c.tar.xz
www-5e4d6875a027ba788f017e53186b8e275328820c.zip
update locale_path function
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/langs.php b/langs.php
index 45a5df512..26a1e839b 100644
--- a/langs.php
+++ b/langs.php
@@ -51,14 +51,11 @@ foreach ($langs as $k => $v)
function locale_path($locale,$path)
{
$filename = "/".$locale."/".$path."/";
+ $url = "/en/".$path;
if (file_exists($filename))
{
$url = $filename;
}
- else
- {
- $url = "/en/".$path;
- }
return $url;
}