Changeset 2048:a23152342139 for inc/admin/actions
- Timestamp:
- 09/23/13 23:40:40 (12 years ago)
- Branch:
- default
- Location:
- inc/admin/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcaction.php
r2039 r2048 223 223 public function redirect($params=array(),$with_selected_entries=false) { 224 224 http::redirect($this->getRedirection($params,$with_selected_entries)); 225 exit; 225 226 } 226 227 … … 270 271 } 271 272 if ($performed) { 272 exit;273 return true; 273 274 } 274 275 } catch (Exception $e) { -
inc/admin/actions/class.dcactionposts.php
r2001 r2048 48 48 array( 49 49 html::escapeHTML($this->core->blog->name) => '', 50 __('Entries') => 'posts.php',50 __('Entries') => $this->getRedirection(array(),true), 51 51 '<span class="page-title">'.__('Entries actions').'</span>' => '' 52 52 )) … … 87 87 class dcDefaultPostActions 88 88 { 89 public static function adminPostsActionsPage($core, dcPostsActionsPage$ap) {89 public static function adminPostsActionsPage($core, $ap) { 90 90 if ($core->auth->check('publish,contentadmin',$core->blog->id)) { 91 91 $ap->addAction( … … 211 211 $ap->redirect(array('upd'=>1),true); 212 212 } else { 213 213 214 $ap->beginPage( 214 215 dcPage::breadcrumb( 215 216 array( 216 217 html::escapeHTML($core->blog->name) => '', 217 __('Entries') => 'posts.php',218 __('Entries') => $ap->getRedirection(array(),true), 218 219 '<span class="page-title">'.__('Change category for entries').'</span>' => '' 219 220 ))); 220 221 221 # categories list 222 222 # Getting categories 223 223 $categories_combo = dcAdminCombos::getCategoriesCombo( 224 $core->blog->getCategories( array('post_type'=>'post'))224 $core->blog->getCategories() 225 225 ); 226 226 echo 227 '<form action=" posts.php" method="post">'.227 '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 228 228 $ap->getCheckboxes(). 229 229 '<p><label for="new_cat_id" class="classic">'.__('Category:').'</label> '. 230 form::combo( 'new_cat_id',$categories_combo,'');230 form::combo(array('new_cat_id'),$categories_combo,''); 231 231 232 232 if ($core->auth->check('categories', $core->blog->id)) { … … 244 244 echo 245 245 $core->formNonce(). 246 $ap->getHiddenFields(). 246 247 form::hidden(array('action'),'category'). 247 248 '<input type="submit" value="'.__('Save').'" /></p>'. … … 285 286 array( 286 287 html::escapeHTML($core->blog->name) => '', 287 __('Entries') => 'posts.php',288 __('Entries') => $ap->getRedirection(array(),true), 288 289 '<span class="page-title">'.__('Change author for entries').'</span>' => '')), 289 290 dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). … … 302 303 303 304 echo 304 $core->formNonce(). 305 $core->formNonce().$ap->getHiddenFields(). 305 306 form::hidden(array('action'),'author'). 306 307 '<input type="submit" value="'.__('Save').'" /></p>'. … … 326 327 array( 327 328 html::escapeHTML($core->blog->name) => '', 328 __('Entries') => 'posts.php',329 __('Entries') => $ap->getRedirection(array(),true), 329 330 '<span class="page-title">'.__('Change language for entries').'</span>' => '' 330 331 ))); … … 353 354 354 355 echo 355 $core->formNonce(). 356 $core->formNonce().$ap->getHiddenFields(). 356 357 form::hidden(array('action'),'lang'). 357 358 '<input type="submit" value="'.__('Save').'" /></p>'.
Note: See TracChangeset
for help on using the changeset viewer.