Changeset 2169:0de9a9b024f5
- Timestamp:
- 09/30/13 15:40:41 (11 years ago)
- Branch:
- default
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcaction.php
r2072 r2169 225 225 * @return string the redirection url 226 226 */ 227 public function getRedirection($ params=array(),$with_selected_entries=false) {227 public function getRedirection($with_selected_entries=false,$params=array()) { 228 228 $redir_args = array_merge($params,$this->redir_args); 229 229 if ($with_selected_entries) { … … 240 240 * @access public 241 241 */ 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)); 244 244 exit; 245 245 } -
inc/admin/actions/class.dcactioncomments.php
r2166 r2169 46 46 47 47 } 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>'; 49 49 } 50 50 … … 149 149 150 150 $core->blog->updCommentsStatus($co_ids,$status); 151 $ap->redirect( array('upd'=>1),true);151 $ap->redirect(true,array('upd'=>1)); 152 152 } 153 153 … … 168 168 169 169 $core->blog->delComments($co_ids); 170 $ap->redirect( array('del'=>1), false);170 $ap->redirect(false,array('del'=>1)); 171 171 } 172 172 } -
inc/admin/actions/class.dcactionposts.php
r2166 r2169 44 44 ); 45 45 } 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>'; 47 47 } 48 48 … … 60 60 array( 61 61 html::escapeHTML($this->core->blog->name) => '', 62 $this->getCallerTitle() => $this->getRedirection( array(),true),62 $this->getCallerTitle() => $this->getRedirection(true), 63 63 __('Entries actions') => '' 64 64 )) … … 160 160 $core->blog->updPostsStatus($posts_ids,$status); 161 161 162 $ap->redirect( array('upd' => 1),true);162 $ap->redirect(true,array('upd' => 1)); 163 163 } 164 164 … … 171 171 $core->blog->updPostsSelected($posts_ids,$action == 'selected'); 172 172 173 $ap->redirect( array('upd' => 1),true);173 $ap->redirect(true,array('upd' => 1)); 174 174 } 175 175 … … 192 192 $core->blog->delPosts($posts_ids); 193 193 194 $ap->redirect( array('del',1),false);194 $ap->redirect(false,array('del',1)); 195 195 } 196 196 … … 221 221 $core->blog->updPostsCategory($posts_ids, $new_cat_id); 222 222 223 $ap->redirect( array('upd'=>1),true);223 $ap->redirect(true,array('upd'=>1)); 224 224 } else { 225 225 … … 228 228 array( 229 229 html::escapeHTML($core->blog->name) => '', 230 $ap->getCallerTitle() => $ap->getRedirection( array(),true),230 $ap->getCallerTitle() => $ap->getRedirection(true), 231 231 __('Change category for this selection') => '' 232 232 ))); … … 280 280 $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 281 281 282 $ap->redirect( array('upd' => 1),true);282 $ap->redirect(true,array('upd' => 1)); 283 283 } else { 284 284 $usersList = ''; … … 298 298 array( 299 299 html::escapeHTML($core->blog->name) => '', 300 $ap->getCallerTitle() => $ap->getRedirection( array(),true),300 $ap->getCallerTitle() => $ap->getRedirection(true), 301 301 __('Change author for this selection') => '')), 302 302 dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). … … 333 333 $cur->update('WHERE post_id '.$core->con->in($posts_ids)); 334 334 335 $ap->redirect( array('upd' => 1),true);335 $ap->redirect(true,array('upd' => 1)); 336 336 } else { 337 337 $ap->beginPage( … … 339 339 array( 340 340 html::escapeHTML($core->blog->name) => '', 341 $ap->getCallerTitle() => $ap->getRedirection( array(),true),341 $ap->getCallerTitle() => $ap->getRedirection(true), 342 342 _('Change language for this selection') => '' 343 343 ))); -
plugins/pages/class.actionpage.php
r2166 r2169 25 25 array( 26 26 html::escapeHTML($this->core->blog->name) => '', 27 __('Pages') => $this->getRedirection( array(),true),27 __('Pages') => $this->getRedirection(true), 28 28 __('Pages actions') => '' 29 29 )) … … 37 37 '</script></head><body>'. 38 38 $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>'; 40 40 41 41 } … … 80 80 81 81 } 82 $ap->redirect( array('reo'=>1),false);82 $ap->redirect(false,array('reo'=>1)); 83 83 } 84 84 } -
plugins/tags/_admin.php
r2166 r2169 136 136 } 137 137 } 138 $ap->redirect( array('upd' => 1),true);138 $ap->redirect(true,array('upd' => 1)); 139 139 } 140 140 else … … 150 150 array( 151 151 html::escapeHTML($core->blog->name) => '', 152 __('Entries') => $ap->getRedirection( array(),true),152 __('Entries') => $ap->getRedirection(true), 153 153 __('Add tags to this selection') => '' 154 154 )), … … 201 201 } 202 202 } 203 $ap->redirect( array('upd' => 1),true);203 $ap->redirect(true,array('upd' => 1)); 204 204 } 205 205 else
Note: See TracChangeset
for help on using the changeset viewer.