Dotclear


Ignore:
Timestamp:
11/26/14 17:45:15 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Using dcAdminURL, work in progress on core : auto-update must be tested BEFORE 2.7 release !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r2777 r2817  
    214214     { 
    215215          if ($this->core->auth->check('categories',$this->core->blog->id)) { 
    216                $cat_link = '<a href="category.php?id=%s">%s</a>'; 
     216               $cat_link = '<a href="'.$this->core->adminurl->decode('admin.category',array('id' => '%s')).'">%s</a>'; 
    217217          } else { 
    218218               $cat_link = '%2$s'; 
     
    443443 
    444444          $author_url = 
    445           'comments.php?n='.$nb_per_page. 
    446           '&amp;status='.$status. 
    447           '&amp;sortby='.$sortby. 
    448           '&amp;order='.$order. 
    449           '&amp;author='.rawurlencode($this->rs->comment_author); 
     445          $this->core->adminurl->get('admin.comments',array( 
     446               'n' => $nb_per_page, 
     447               'status' => $status, 
     448               'sortby' => $sortby, 
     449               'order' => $order, 
     450               'author' => $this->rs->comment_author 
     451               )); 
    450452 
    451453          $post_url = $this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id); 
    452454 
    453           $comment_url = 'comment.php?id='.$this->rs->comment_id; 
     455          $comment_url = $this->core->adminurl->get('admin.comment',array('id' => $this->rs->comment_id)); 
    454456 
    455457          $comment_dt = 
     
    576578          '<td class="nowrap">'.form::hidden(array('nb_post[]'),(integer) $this->rs->nb_post). 
    577579          form::checkbox(array('users[]'),$this->rs->user_id).'</td>'. 
    578           '<td class="maximal" scope="row"><a href="user.php?id='.$this->rs->user_id.'">'. 
     580          '<td class="maximal" scope="row"><a href="'.$this->core->adminurl->get('admin.user',array('id' => $this->rs->user_id)).'">'. 
    579581          $this->rs->user_id.'</a>&nbsp;'.$img_status.'</td>'. 
    580582          '<td class="nowrap">'.html::escapeHTML($this->rs->user_firstname).'</td>'. 
    581583          '<td class="nowrap">'.html::escapeHTML($this->rs->user_name).'</td>'. 
    582584          '<td class="nowrap">'.html::escapeHTML($this->rs->user_displayname).'</td>'. 
    583           '<td class="nowrap count"><a href="posts.php?user_id='.$this->rs->user_id.'">'. 
     585          '<td class="nowrap count"><a href="'.$this->core->adminurl->get('admin.posts',array('user_id' => $this->rs->user_id)).'">'. 
    584586          $this->rs->nb_post.'</a></td>'. 
    585587          '</tr>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map