aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-02-16 16:56:30 +0000
committerDamien Lallement <dams@mageia.org>2011-02-16 16:56:30 +0000
commit7bcedac7a22548d59ac64ce20d25c992c9e6bfc7 (patch)
treed654ce3e061badcad9c97eeafaf5db74a40caf4e /langs.php
parent648023845bb3dff8065e5ce9e53e9f3891ab11f0 (diff)
downloadwww-7bcedac7a22548d59ac64ce20d25c992c9e6bfc7.tar
www-7bcedac7a22548d59ac64ce20d25c992c9e6bfc7.tar.gz
www-7bcedac7a22548d59ac64ce20d25c992c9e6bfc7.tar.bz2
www-7bcedac7a22548d59ac64ce20d25c992c9e6bfc7.tar.xz
www-7bcedac7a22548d59ac64ce20d25c992c9e6bfc7.zip
debug
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/langs.php b/langs.php
index 33de49e32..75828707c 100644
--- a/langs.php
+++ b/langs.php
@@ -50,9 +50,9 @@ foreach ($langs as $k => $v)
// prevent 404 error on /{$locale}/ with missing translation
function locale_path($loc,$path)
{
- $filename = "/".$loc."/".$path."/";
+ $filename = "/".$loc."/".$path;
$url = "/en/".$path;
- echo "filename: $filename-url: $url-loc: $loc-locale: $locale-path: $path";
+ echo "filename: $filename-url: $url-loc: $loc-locale: {$locale}-path: $path";
if (file_exists($filename))
{
$url = $filename;