Ignore:
Timestamp:
Mar 28, 2011, 10:53:47 PM (13 years ago)
Author:
Eric
Message:

r9908 merged from trunk to branch 2.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.20/main.inc.php

    r9854 r9909  
    1919if (!defined('UAM_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    2020
     21global $conf;
     22
    2123include_once (UAM_PATH.'include/constants.php');
    2224include_once (UAM_PATH.'include/functions.inc.php');
    2325
    2426load_language('plugin.lang', UAM_PATH);
     27$conf_UAM = unserialize($conf['UserAdvManager']);
    2528
    2629
     
    5659// Comment without author
    5760add_event_handler('user_comment_check', 'UAM_CheckEmptyCommentAuthor', 50, 2);
     61
     62// PWG_Stuffs module
     63if ((isset($conf_UAM[34]) and $conf_UAM[34] == 'true'))
     64{
     65  add_event_handler('get_stuffs_modules', 'register_UAM_stuffs_module');
     66}
    5867?>
Note: See TracChangeset for help on using the changeset viewer.