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/search.php

    r2566 r2720  
    7070 
    7171if ($qtype == 'p') { 
    72      $posts_actions_page = new dcPostsActionsPage($core,'search.php',array('q'=>$q,'qtype'=>$qtype)); 
     72     $posts_actions_page = new dcPostsActionsPage($core,$core->adminurl->get("admin.search"),array('q'=>$q,'qtype'=>$qtype)); 
    7373 
    7474     if ($posts_actions_page->process()) { 
     
    7676     } 
    7777} else { 
    78      $comments_actions_page = new dcCommentsActionsPage($core,'search.php',array('q'=>$q,'qtype'=>$qtype)); 
     78     $comments_actions_page = new dcCommentsActionsPage($core,$core->adminurl->get("admin.search"),array('q'=>$q,'qtype'=>$qtype)); 
    7979 
    8080     if ($comments_actions_page->process()) { 
     
    9292 
    9393echo 
    94 '<form action="search.php" method="get">'. 
     94'<form action="'.$core->adminurl->get("admin.search").'" method="get">'. 
    9595'<div class="fieldset"><h3>'.__('Search options').'</h3>'. 
    9696'<p><label for="q">'.__('Query:').' </label>'.form::field('q',30,255,html::escapeHTML($q)).'</p>'. 
     
    116116 
    117117          $post_list->display($page,$nb_per_page, 
    118           '<form action="search.php" method="post" id="form-entries">'. 
     118          '<form action="'.$core->adminurl->get("admin.search").'" method="post" id="form-entries">'. 
    119119 
    120120          '%s'. 
     
    144144 
    145145          $comment_list->display($page,$nb_per_page, 
    146           '<form action="search.php" method="post" id="form-comments">'. 
     146          '<form action="'.$core->adminurl->get("admin.search").'" method="post" id="form-comments">'. 
    147147 
    148148          '%s'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map