Change: flags are searched into language subdirectories
git-svn-id: http://piwigo.org/svn/trunk@5845 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
2d1c005f53
commit
facdd9dccc
2 changed files with 3 additions and 4 deletions
plugins/language_switch
|
@ -70,10 +70,9 @@ class language_controler {
|
|||
'url' => str_replace(array('=&','?&'),array('&','?'),
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue