Changeset 31955


Ignore:
Timestamp:
11/28/18 16:46:15 (12 months ago)
Author:
plg
Message:

make sure AntiAspi config is usable in other plugins (such as Whois Online)

File:
1 edited

Legend:

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

    r31372 r31955  
    2222define('ANTIASPI_LOG_TABLE' , $prefixeTable . 'antiaspi_log'); 
    2323define('ANTIASPI_ADMIN',get_root_url().'admin.php?page=plugin-'.ANTIASPI_ID); 
     24 
     25add_event_handler('init', 'antiaspi_init'); 
     26function antiaspi_init() 
     27{ 
     28  global $conf; 
     29  $conf['antiaspi'] = safe_unserialize($conf['antiaspi']); 
     30} 
    2431 
    2532add_event_handler('loc_end_section_init', 'antiaspi'); 
Note: See TracChangeset for help on using the changeset viewer.