Ignore:
Timestamp:
Mar 28, 2011, 10:49:43 PM (13 years ago)
Author:
Eric
Message:
  • Bug 1479 fixed : Add of a dedicated UAM block in PWG Stuffs plugin to inform unvalidated users on their status
  • Template/global.tpl display improved.
  • Code cleaning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/main.inc.php

    r9853 r9908  
    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.