Changeset 10692 for extensions/LCAS/branch/2.2/main.inc.php
- Timestamp:
- Apr 29, 2011, 10:32:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/branch/2.2/main.inc.php
r10580 r10692 2 2 /* 3 3 Plugin Name: LCAS 4 Version: 2.2. 14 Version: 2.2.2 5 5 Description: Allow to disable login/register name to be sensible to the case/accents 6 6 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=513 … … 37 37 $plugin = LCAS_PluginInfos(LCAS_PATH); 38 38 $name = $plugin['name']; 39 40 array_push($menu, 41 array( 42 'NAME' => $name, 43 'URL' => get_root_url().'admin.php?page=plugin-'.basename(LCAS_PATH) 44 ) 45 ); 39 40 // Compliance with Piwigo 2.2 41 if (version_compare(PHPWG_VERSION, '2.2', '>=') ) 42 { 43 array_push($menu, 44 array( 45 'NAME' => $name, 46 'URL' => get_root_url().'admin.php?page=plugin-'.basename(LCAS_PATH) 47 ) 48 ); 49 } 50 else // Compliance with Piwigo 2.1 51 { 52 array_push($menu, 53 array( 54 'NAME' => $name, 55 'URL' => get_admin_plugin_menu_link(LCAS_PATH.'/admin/LCAS_admin.php') 56 ) 57 ); 58 } 46 59 47 60 return $menu;
Note: See TracChangeset
for help on using the changeset viewer.