aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2010-04-13 21:44:49 +0000
committervdigital <vdigital@piwigo.org>2010-04-13 21:44:49 +0000
commitfacdd9dcccc169548a4d510af7ece106e97a9bfe (patch)
tree246e286509c4bbe6fb4956168a7c56bd21962bf0 /plugins
parent2d1c005f53db6ec9be690f664a00cc9a19a389b4 (diff)
Change: flags are searched into language subdirectories
git-svn-id: http://piwigo.org/svn/trunk@5845 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/language_switch/language_switch.inc.php5
-rw-r--r--plugins/language_switch/main.inc.php2
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php
index cf815036e..500e07d91 100644
--- a/plugins/language_switch/language_switch.inc.php
+++ b/plugins/language_switch/language_switch.inc.php
@@ -70,10 +70,9 @@ class language_controler {
'url' => str_replace(array('=&amp;','?&amp;'),array('&amp;','?'),
add_url_params( $url_starting, array('lang'=> $code) )),
'alt' => ucwords( $displayname ),
- 'img' => get_root_url().'plugins/language_switch/icons/' . $code . '.jpg',
+ 'img' => get_root_url().'language/' . $code . '/' . $code . '.jpg',
);
- if ( $code !== $user['language'] and
- file_exists(dirname(__FILE__) . '/icons/' . $code . '.jpg') )
+ if ( $code !== $user['language'] )
$lsw['flags'][$code] = $qlc ;
else $lsw['Active'] = $qlc;
}
diff --git a/plugins/language_switch/main.inc.php b/plugins/language_switch/main.inc.php
index 963b64609..fc430cd2f 100644
--- a/plugins/language_switch/main.inc.php
+++ b/plugins/language_switch/main.inc.php
@@ -23,7 +23,7 @@
/*
Plugin Name: Language Switch
-Version: auto
+Version: Auto
Description: Switch to another language from flags on your gallery home page.
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
Author: Piwigo team