Changeset 15923 for trunk/plugins/language_switch/main.inc.php
- Timestamp:
- Jun 21, 2012, 12:23:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/language_switch/main.inc.php
r12922 r15923 24 24 /* 25 25 Plugin Name: Language Switch 26 Version: 2. 3.026 Version: 2.4.0 27 27 Description: Switch to another language from flags on your gallery home page. 28 28 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123 … … 31 31 */ 32 32 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 ); 33 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 34 35 define('LANGUAGE_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 36 37 include_once(LANGUAGE_SWITCH_PATH.'language_switch.inc.php'); 38 39 add_event_handler('loading_lang', 'language_controler_switch', 5 ); 40 add_event_handler('loc_end_index', 'language_controler_flags', 95 ); 41 37 42 ?>
Note: See TracChangeset
for help on using the changeset viewer.