Ignore:
Timestamp:
Jun 30, 2009, 11:24:55 PM (15 years ago)
Author:
vdigital
Message:

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
$confquestion_mark_in_urls
$confphp_extension_in_urls
=> BUT force a return to home in some cases.
+ Full technical code review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/language_switch/main.inc.php

    r3376 r3479  
    2424/*
    2525Plugin Name: Language Switch
    26 Version: 2.0.2a
     26Version: 2.0.2b
    2727Description: Switch to another language from flags on your gallery home page.
    2828Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
     
    3232
    3333include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
    34 add_event_handler('loading_lang', 'language_controler::_switch', 5 );
    35 add_event_handler('loc_end_index', 'language_controler::_flags', 95 );
     34$language_controler = new language_controler();
     35add_event_handler('loading_lang', array(&$language_controler, '_switch'), 5 );
     36add_event_handler('loc_end_index', array(&$language_controler, '_flags'), 95 );
    3637?>
Note: See TracChangeset for help on using the changeset viewer.