mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
merge r3477 from branch 2.0 to trunk
Bug 964 fixed and more + ?&lang=en_UK" => ?lang=en_UK" + =&lang=en_UK" => &lang=en_UK" + Works for any combinations of $conf['question_mark_in_urls'] $conf['php_extension_in_urls'] => BUT force a return to home in some cases. + Full technical code review git-svn-id: http://piwigo.org/svn/trunk@3479 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
/*
|
||||
Plugin Name: Language Switch
|
||||
Version: 2.0.2a
|
||||
Version: 2.0.2b
|
||||
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
|
||||
@@ -31,6 +31,7 @@ Author URI: http://piwigo.org
|
||||
*/
|
||||
|
||||
include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
|
||||
add_event_handler('loading_lang', 'language_controler::_switch', 5 );
|
||||
add_event_handler('loc_end_index', 'language_controler::_flags', 95 );
|
||||
$language_controler = new language_controler();
|
||||
add_event_handler('loading_lang', array(&$language_controler, '_switch'), 5 );
|
||||
add_event_handler('loc_end_index', array(&$language_controler, '_flags'), 95 );
|
||||
?>
|
||||
Reference in New Issue
Block a user