Dotclear


Ignore:
Timestamp:
09/16/13 10:11:39 (12 years ago)
Author:
Dsls
Branch:
actionsreloaded
Message:

Added redirection default params, tuned pages plugin for new actions handling. See #1181

File:
1 edited

Legend:

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

    r1808 r1903  
    1414class dcPostsActionsPage extends dcActionsPage 
    1515{ 
    16      public function __construct($core,$uri) { 
    17           parent::__construct($core,$uri); 
     16     public function __construct($core,$uri,$redirect_args=array()) { 
     17          parent::__construct($core,$uri,$redirect_args); 
    1818          $this->redirect_fields = array('user_id','cat_id','status', 
    1919          'selected','month','lang','sortby','order','page','nb'); 
     20          $this->loadDefaults(); 
     21          $core->callBehavior('adminPostsActionsPage',$core,$this); 
     22     } 
     23 
     24     protected function loadDefaults() { 
    2025          // We could have added a behavior here, but we want default action 
    2126          // to be setup first 
    22           dcDefaultPostActions::adminPostsActionsPage($core,$this); 
    23           $core->callBehavior('adminPostsActionsPage',$core,$this); 
    24  
    25      } 
    26  
     27          dcDefaultPostActions::adminPostsActionsPage($this->core,$this); 
     28     } 
     29      
    2730     public function beginPage($breadcrumb='',$head='') { 
    2831          dcPage::open( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map