Ignore:
Timestamp:
Mar 16, 2013, 8:32:05 PM (11 years ago)
Author:
mistic100
Message:

code clean, add admin list of all subscribers

File:
1 edited

Legend:

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

    r21441 r21608  
    99*/
    1010
    11 /*
    12  * potential problem : if the permissions of a user change, he receives notifications
    13  * about photos and albums he can't see anymore
    14  */
    15 
    1611if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1712
     
    2116define('SUBSCRIBE_TO_PATH' ,   PHPWG_PLUGINS_PATH . SUBSCRIBE_TO_ID . '/');
    2217define('SUBSCRIBE_TO_TABLE',   $prefixeTable . 'subscribe_to_comments');
     18define('SUBSCRIBE_TO_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . SUBSCRIBE_TO_ID);
    2319define('SUBSCRIBE_TO_VERSION', 'auto');
    2420
     
    9894  array_push($menu, array(
    9995    'NAME' => 'Subscribe to Comments',
    100     'URL' => get_root_url().'admin.php?page=plugin-' . SUBSCRIBE_TO_ID,
     96    'URL' => SUBSCRIBE_TO_ADMIN,
    10197  ));
    10298  return $menu;
Note: See TracChangeset for help on using the changeset viewer.