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:
vdigital
2009-06-30 21:24:55 +00:00
parent 73680f6348
commit 731cb8940c
3 changed files with 17 additions and 20 deletions
+4 -3
View File
@@ -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 );
?>