Dotclear


Ignore:
Timestamp:
11/27/14 15:28:36 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Using dcAdminURL, work in progress on plugins…

Location:
plugins/antispam/inc
Files:
2 edited

Legend:

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

    r2566 r2823  
    4040          } 
    4141 
    42           $this->gui_url = 'plugin.php?p=antispam&f='.get_class($this); 
     42          $this->gui_url = $core->adminurl->decode('admin.plugin.antispam',array('f' => get_class($this))); 
    4343     } 
    4444 
  • plugins/antispam/inc/lib.dc.antispam.php

    r2566 r2823  
    7575          if (($count = self::countSpam($core)) > 0) { 
    7676               $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    77                $icons['comments'][0] .= '</span></a> <br /><a href="comments.php?status=-2"><span>'.sprintf($str,$count); 
     77               $icons['comments'][0] .= '</span></a> <br /><a href="'.$core->adminurl->get('admin.comments',array('status' => '-2')).'"><span>'. 
     78                    sprintf($str,$count); 
    7879          } 
    7980     } 
     
    8384          if (($count = self::countSpam($core)) > 0) { 
    8485               $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    85                return '</span></a> <br /><a href="comments.php?status=-2"><span>'.sprintf($str,$count); 
     86               return '</span></a> <br /><a href="'.$core->adminurl->get('admin.comments',array('status' => '-2')).'"><span>'. 
     87                    sprintf($str,$count); 
    8688          } else { 
    8789               return ''; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map