mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
[Language Switch] new version using 2.4 drop-down menus
git-svn-id: http://piwigo.org/svn/trunk@15923 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -23,15 +23,20 @@
|
||||
|
||||
/*
|
||||
Plugin Name: Language Switch
|
||||
Version: 2.3.0
|
||||
Version: 2.4.0
|
||||
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
|
||||
Author URI: http://piwigo.org
|
||||
*/
|
||||
|
||||
include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
|
||||
$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 );
|
||||
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
|
||||
|
||||
define('LANGUAGE_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
|
||||
|
||||
include_once(LANGUAGE_SWITCH_PATH.'language_switch.inc.php');
|
||||
|
||||
add_event_handler('loading_lang', 'language_controler_switch', 5 );
|
||||
add_event_handler('loc_end_index', 'language_controler_flags', 95 );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user