Dotclear


Ignore:
Timestamp:
02/05/16 15:12:03 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use new setting type 'array' for some settings, addresses #1833

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/inc/class.dc.spamfilters.php

    r2566 r3159  
    128128               $this->core->blog->settings->antispam->drop('antispam_filters'); 
    129129          } 
    130           $this->core->blog->settings->antispam->put('antispam_filters',serialize($opts),'string','Antispam Filters',true,$global); 
     130          $this->core->blog->settings->antispam->put('antispam_filters',$opts,'array','Antispam Filters',true,$global); 
    131131     } 
    132132 
     
    134134     { 
    135135          if ($this->core->blog->settings->antispam->antispam_filters !== null) { 
    136                $this->filters_opt = @unserialize($this->core->blog->settings->antispam->antispam_filters); 
     136               $this->filters_opt = $this->core->blog->settings->antispam->antispam_filters; 
    137137          } 
    138138 
Note: See TracChangeset for help on using the changeset viewer.

Sites map