Ignore:
Timestamp:
Jul 17, 2011, 10:43:19 PM (13 years ago)
Author:
plg
Message:

make the plugin compatible with Piwigo 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/showcase_subscribe/main.inc.php

    r11761 r11762  
    1818function showcase_subscribe_menu($menu)
    1919{
     20  if (preg_match('/^2.1/', PHPWG_VERSION))
     21  {
     22    $url = get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php');
     23  }
     24  else
     25  {
     26    $url = get_root_url().'admin.php?page=plugin-showcase_subscribe';
     27  }
     28 
    2029  array_push(
    2130    $menu,
    2231    array(
    2332      'NAME' => 'Showcase',
    24       'URL'  => get_root_url().'admin.php?page=plugin-showcase_subscribe'
     33      'URL'  => $url,
    2534      )
    2635    );
Note: See TracChangeset for help on using the changeset viewer.