Changeset 11762


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

make the plugin compatible with Piwigo 2.1

Location:
extensions/showcase_subscribe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/showcase_subscribe/admin.php

    r11681 r11762  
    142142{
    143143  array_push(
    144     $page['warnings'],
     144    $page['infos'],
    145145    l10n('Your subscription is currently pending, if you have provided an email, you will be notified as soon as your gallery is registered')
    146146    );
     
    150150{
    151151  array_push(
    152     $page['warnings'],
     152    $page['infos'],
    153153    sprintf(
    154154      l10n('Your gallery is already registered in Piwigo Showcase, <a href="%s">see it →</a>'),
  • 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.