Ignore:
Timestamp:
Apr 29, 2011, 10:32:30 PM (13 years ago)
Author:
Eric
Message:

merged from trunk to branch 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/branch/2.2/main.inc.php

    r10580 r10692  
    22/*
    33Plugin Name: LCAS
    4 Version: 2.2.1
     4Version: 2.2.2
    55Description: Allow to disable login/register name to be sensible to the case/accents
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=513
     
    3737  $plugin =  LCAS_PluginInfos(LCAS_PATH);
    3838  $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  }
    4659
    4760  return $menu;
Note: See TracChangeset for help on using the changeset viewer.