Dotclear

Changeset 2169:0de9a9b024f5


Ignore:
Timestamp:
09/30/13 15:40:41 (11 years ago)
Author:
Dsls
Branch:
default
Message:

Inverted redirection methods arguments order.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/actions/class.dcaction.php

    r2072 r2169  
    225225     * @return string the redirection url 
    226226     */ 
    227      public function getRedirection($params=array(),$with_selected_entries=false) { 
     227     public function getRedirection($with_selected_entries=false,$params=array()) { 
    228228          $redir_args = array_merge($params,$this->redir_args); 
    229229          if ($with_selected_entries) { 
     
    240240     * @access public 
    241241     */ 
    242      public function redirect($params=array(),$with_selected_entries=false) { 
    243           http::redirect($this->getRedirection($params,$with_selected_entries)); 
     242     public function redirect($with_selected_entries=false,$params=array()) { 
     243          http::redirect($this->getRedirection($with_selected_entries,$params)); 
    244244          exit; 
    245245     }     
  • inc/admin/actions/class.dcactioncomments.php

    r2166 r2169  
    4646 
    4747          } 
    48           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to comments list').'</a></p>'; 
     48          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to comments list').'</a></p>'; 
    4949     } 
    5050      
     
    149149           
    150150          $core->blog->updCommentsStatus($co_ids,$status); 
    151           $ap->redirect(array('upd'=>1),true); 
     151          $ap->redirect(true,array('upd'=>1)); 
    152152     } 
    153153 
     
    168168           
    169169          $core->blog->delComments($co_ids); 
    170           $ap->redirect(array('del'=>1), false); 
     170          $ap->redirect(false,array('del'=>1)); 
    171171     } 
    172172} 
  • inc/admin/actions/class.dcactionposts.php

    r2166 r2169  
    4444               ); 
    4545          } 
    46           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to entries list').'</a></p>'; 
     46          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to entries list').'</a></p>'; 
    4747     } 
    4848      
     
    6060               array( 
    6161                    html::escapeHTML($this->core->blog->name) => '', 
    62                     $this->getCallerTitle() => $this->getRedirection(array(),true), 
     62                    $this->getCallerTitle() => $this->getRedirection(true), 
    6363                    __('Entries actions') => '' 
    6464               )) 
     
    160160          $core->blog->updPostsStatus($posts_ids,$status); 
    161161           
    162           $ap->redirect(array('upd' => 1),true); 
     162          $ap->redirect(true,array('upd' => 1)); 
    163163     } 
    164164      
     
    171171          $core->blog->updPostsSelected($posts_ids,$action == 'selected'); 
    172172           
    173           $ap->redirect(array('upd' => 1),true); 
     173          $ap->redirect(true,array('upd' => 1)); 
    174174     } 
    175175      
     
    192192          $core->blog->delPosts($posts_ids); 
    193193           
    194           $ap->redirect(array('del',1),false); 
     194          $ap->redirect(false,array('del',1)); 
    195195     } 
    196196 
     
    221221               $core->blog->updPostsCategory($posts_ids, $new_cat_id); 
    222222                
    223                $ap->redirect(array('upd'=>1),true); 
     223               $ap->redirect(true,array('upd'=>1)); 
    224224          } else { 
    225225 
     
    228228                         array( 
    229229                              html::escapeHTML($core->blog->name) => '', 
    230                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
     230                              $ap->getCallerTitle() => $ap->getRedirection(true), 
    231231                              __('Change category for this selection') => '' 
    232232               ))); 
     
    280280               $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 
    281281                
    282                $ap->redirect(array('upd' => 1),true); 
     282               $ap->redirect(true,array('upd' => 1)); 
    283283          } else { 
    284284               $usersList = ''; 
     
    298298                         array( 
    299299                              html::escapeHTML($core->blog->name) => '', 
    300                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
     300                              $ap->getCallerTitle() => $ap->getRedirection(true), 
    301301                              __('Change author for this selection') => '')), 
    302302                         dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). 
     
    333333               $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 
    334334                
    335                $ap->redirect(array('upd' => 1),true); 
     335               $ap->redirect(true,array('upd' => 1)); 
    336336          } else { 
    337337               $ap->beginPage( 
     
    339339                         array( 
    340340                              html::escapeHTML($core->blog->name) => '', 
    341                               $ap->getCallerTitle() => $ap->getRedirection(array(),true), 
     341                              $ap->getCallerTitle() => $ap->getRedirection(true), 
    342342                              _('Change language for this selection') => '' 
    343343               ))); 
  • plugins/pages/class.actionpage.php

    r2166 r2169  
    2525               array( 
    2626                    html::escapeHTML($this->core->blog->name) => '', 
    27                     __('Pages') => $this->getRedirection(array(),true), 
     27                    __('Pages') => $this->getRedirection(true), 
    2828                    __('Pages actions') => '' 
    2929               )) 
     
    3737               '</script></head><body>'. 
    3838               $breadcrumb; 
    39           echo '<p><a class="back" href="'.$this->getRedirection(array(),true).'">'.__('Back to pages list').'</a></p>'; 
     39          echo '<p><a class="back" href="'.$this->getRedirection(true).'">'.__('Back to pages list').'</a></p>'; 
    4040 
    4141     } 
     
    8080                
    8181          } 
    82           $ap->redirect(array('reo'=>1),false); 
     82          $ap->redirect(false,array('reo'=>1)); 
    8383     }     
    8484} 
  • plugins/tags/_admin.php

    r2166 r2169  
    136136                    } 
    137137               } 
    138                $ap->redirect(array('upd' => 1),true); 
     138               $ap->redirect(true,array('upd' => 1)); 
    139139          }  
    140140          else  
     
    150150                         array( 
    151151                              html::escapeHTML($core->blog->name) => '', 
    152                               __('Entries') => $ap->getRedirection(array(),true), 
     152                              __('Entries') => $ap->getRedirection(true), 
    153153                              __('Add tags to this selection') => '' 
    154154                    )), 
     
    201201                    } 
    202202               } 
    203                $ap->redirect(array('upd' => 1),true); 
     203               $ap->redirect(true,array('upd' => 1)); 
    204204          } 
    205205          else 
Note: See TracChangeset for help on using the changeset viewer.

Sites map