Changeset 2055:699a9314513f for inc/admin
- Timestamp:
- 09/24/13 09:37:38 (12 years ago)
- Branch:
- default
- Location:
- inc/admin/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcaction.php
r2048 r2055 44 44 protected $cb_title; 45 45 46 /** @var string title for caller page title */ 47 protected $caller_title; 48 46 49 /** 47 50 * Class constructor … … 66 69 $this->from = new ArrayObject($_POST); 67 70 $this->field_entries = 'entries'; 71 $this->caller_title = __('Entries'); 68 72 } 69 73 … … 194 198 } 195 199 200 196 201 /** 197 202 * getRedirection - returns redirection URL … … 237 242 } 238 243 244 /** 245 * getCallerTitle - returns current form URI, if any 246 * 247 * @access public 248 * 249 * @return string the form URI 250 */ 251 public function getCallerTitle() { 252 return $this->caller_title; 253 } 254 239 255 /** 240 256 * getAction - returns current action, if any … … 275 291 } catch (Exception $e) { 276 292 $this->error($e); 293 return true; 277 294 } 278 295 } -
inc/admin/actions/class.dcactionposts.php
r2048 r2055 19 19 'selected','month','lang','sortby','order','page','nb'); 20 20 $this->loadDefaults(); 21 $core->callBehavior('adminPostsActionsPage',$core,$this);22 21 } 23 22 … … 26 25 // to be setup first 27 26 dcDefaultPostActions::adminPostsActionsPage($this->core,$this); 27 $this->core->callBehavior('adminPostsActionsPage',$this->core,$this); 28 28 29 } 29 30 … … 48 49 array( 49 50 html::escapeHTML($this->core->blog->name) => '', 50 __('Entries') => $this->getRedirection(array(),true),51 $this->getCallerTitle() => $this->getRedirection(array(),true), 51 52 '<span class="page-title">'.__('Entries actions').'</span>' => '' 52 53 )) … … 216 217 array( 217 218 html::escapeHTML($core->blog->name) => '', 218 __('Entries') => $ap->getRedirection(array(),true),219 '<span class="page-title">'.__('Change category for entries').'</span>' => ''219 $ap->getCallerTitle() => $ap->getRedirection(array(),true), 220 '<span class="page-title">'.__('Change category for this selection').'</span>' => '' 220 221 ))); 221 222 # categories list … … 286 287 array( 287 288 html::escapeHTML($core->blog->name) => '', 288 __('Entries') => $ap->getRedirection(array(),true),289 '<span class="page-title">'.__('Change author for entries').'</span>' => '')),289 $ap->getCallerTitle() => $ap->getRedirection(array(),true), 290 '<span class="page-title">'.__('Change author for this selection').'</span>' => '')), 290 291 dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). 291 292 '<script type="text/javascript">'."\n". … … 297 298 298 299 echo 299 '<form action=" posts_actions.php" method="post">'.300 '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 300 301 $ap->getCheckboxes(). 301 302 '<p><label for="new_auth_id" class="classic">'.__('New author (author ID):').'</label> '. … … 327 328 array( 328 329 html::escapeHTML($core->blog->name) => '', 329 __('Entries') => $ap->getRedirection(array(),true),330 '<span class="page-title">'.__('Change language for entries').'</span>' => ''330 $ap->getCallerTitle() => $ap->getRedirection(array(),true), 331 '<span class="page-title">'.__('Change language for this selection').'</span>' => '' 331 332 ))); 332 333 # lang list … … 347 348 348 349 echo 349 '<form action=" posts_actions.php" method="post">'.350 '<form action="'.$ap->getRedirection(array(),true).'" method="post">'. 350 351 $ap->getCheckboxes(). 351 352
Note: See TracChangeset
for help on using the changeset viewer.