Ignore:
Timestamp:
Jun 21, 2012, 12:23:12 PM (12 years ago)
Author:
mistic100
Message:

[Language Switch] new version using 2.4 drop-down menus

File:
1 edited

Legend:

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

    r12922 r15923  
    2424/*
    2525Plugin Name: Language Switch
    26 Version: 2.3.0
     26Version: 2.4.0
    2727Description: Switch to another language from flags on your gallery home page.
    2828Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
     
    3131*/
    3232
    33 include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
    34 $language_controler = new language_controler();
    35 add_event_handler('loading_lang', array(&$language_controler, '_switch'), 5 );
    36 add_event_handler('loc_end_index', array(&$language_controler, '_flags'), 95 );
     33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     34
     35define('LANGUAGE_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
     36
     37include_once(LANGUAGE_SWITCH_PATH.'language_switch.inc.php');
     38
     39add_event_handler('loading_lang', 'language_controler_switch', 5 );
     40add_event_handler('loc_end_index', 'language_controler_flags', 95 );
     41
    3742?>
Note: See TracChangeset for help on using the changeset viewer.