Dotclear


Ignore:
Timestamp:
06/19/14 16:56:47 (11 years ago)
Author:
Dsls
Branch:
default
Message:

One step further towards php hardcoded links annihilation in admin sources, more to come...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comments.php

    r2566 r2720  
    2020          $core->blog->delJunkComments(); 
    2121          $_SESSION['comments_del_spam'] = true; 
    22           http::redirect('comments.php'); 
     22          http::redirect($core->adminurl->get("admin.comments")); 
    2323     } catch (Exception $e) { 
    2424          $core->error->add($e->getMessage()); 
     
    136136} 
    137137 
    138 $comments_actions_page = new dcCommentsActionsPage($core,'comments.php'); 
     138$comments_actions_page = new dcCommentsActionsPage($core,$core->adminurl->get("admin.comments")); 
    139139 
    140140if ($comments_actions_page->process()) { 
     
    191191 
    192192          echo 
    193                '<form action="comments.php" method="post" class="fieldset">'; 
     193               '<form action="'.$core->adminurl->get("admin.comments").'" method="post" class="fieldset">'; 
    194194 
    195195          if (!$with_spam || ($status != -2)) { 
    196196               if ($spam_count == 1) { 
    197197                    echo '<p>'.sprintf(__('You have one spam comment.'),'<strong>'.$spam_count.'</strong>').' '. 
    198                     '<a href="comments.php?status=-2">'.__('Show it.').'</a>.</p>'; 
     198                    '<a href="'.$core->adminurl->get("admin.comments",array('status' => -2)).'">'.__('Show it.').'</a>.</p>'; 
    199199               } elseif ($spam_count > 1) { 
    200200                    echo '<p>'.sprintf(__('You have %s spam comments.'),'<strong>'.$spam_count.'</strong>').' '. 
    201                     '<a href="comments.php?status=-2">'.__('Show them.').'</a>.</p>'; 
     201                    '<a href="'.$core->adminurl->get("admin.comments",array('status' => -2)).'">'.__('Show them.').'</a>.</p>'; 
    202202               } 
    203203          } 
     
    215215 
    216216     echo 
    217      '<form action="comments.php" method="get" id="filters-form">'. 
     217     '<form action="'.$core->adminurl->get("admin.comments").'" method="get" id="filters-form">'. 
    218218     '<h3 class="hidden">'.__('Filter comments and trackbacks list').'</h3>'. 
    219219     '<div class="table">'. 
     
    252252     # Show comments 
    253253     $comment_list->display($page,$nb_per_page, 
    254      '<form action="comments.php" method="post" id="form-comments">'. 
     254     '<form action="'.$core->adminurl->get("admin.comments").'" method="post" id="form-comments">'. 
    255255 
    256256     '%s'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map