Changeset 31955


Ignore:
Timestamp:
Nov 28, 2018, 4:46:15 PM (20 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.