Changeset 2720:bc400ebfc2e9 for admin/comments.php
- Timestamp:
- 06/19/14 16:56:47 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/comments.php
r2566 r2720 20 20 $core->blog->delJunkComments(); 21 21 $_SESSION['comments_del_spam'] = true; 22 http::redirect( 'comments.php');22 http::redirect($core->adminurl->get("admin.comments")); 23 23 } catch (Exception $e) { 24 24 $core->error->add($e->getMessage()); … … 136 136 } 137 137 138 $comments_actions_page = new dcCommentsActionsPage($core, 'comments.php');138 $comments_actions_page = new dcCommentsActionsPage($core,$core->adminurl->get("admin.comments")); 139 139 140 140 if ($comments_actions_page->process()) { … … 191 191 192 192 echo 193 '<form action=" comments.php" method="post" class="fieldset">';193 '<form action="'.$core->adminurl->get("admin.comments").'" method="post" class="fieldset">'; 194 194 195 195 if (!$with_spam || ($status != -2)) { 196 196 if ($spam_count == 1) { 197 197 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>'; 199 199 } elseif ($spam_count > 1) { 200 200 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>'; 202 202 } 203 203 } … … 215 215 216 216 echo 217 '<form action=" comments.php" method="get" id="filters-form">'.217 '<form action="'.$core->adminurl->get("admin.comments").'" method="get" id="filters-form">'. 218 218 '<h3 class="hidden">'.__('Filter comments and trackbacks list').'</h3>'. 219 219 '<div class="table">'. … … 252 252 # Show comments 253 253 $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">'. 255 255 256 256 '%s'.
Note: See TracChangeset
for help on using the changeset viewer.