From 8f019e2f8de323b491a39c42436d21207459c7be Mon Sep 17 00:00:00 2001 From: flop25 Date: Wed, 6 Feb 2013 15:47:00 +0000 Subject: bug:2827 adding a sprite for flags. So the flag in language packages is no longuer required, but language_switch.css need to be edited for a language added to Piwigo. git-svn-id: http://piwigo.org/svn/trunk@20587 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/language_switch/language_switch.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/language_switch/language_switch.inc.php') diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php index 30c846b75..63a3cca7e 100644 --- a/plugins/language_switch/language_switch.inc.php +++ b/plugins/language_switch/language_switch.inc.php @@ -109,12 +109,11 @@ function language_controler_flags() foreach ($available_lang as $code => $displayname) { - $qlc = array ( 'url' => add_url_params($base_url, array('lang'=> $code)), 'alt' => ucwords($displayname), 'title' => substr($displayname, 0, -4), // remove [FR] or [RU] - 'img' => get_root_url().'language/'.$code.'/'.$code.'.jpg', + 'code' => $code, ); $lsw['flags'][$code] = $qlc; -- cgit v1.2.3