Changeset 1807:281c64233f6d
- Timestamp:
- 09/13/13 11:48:26 (12 years ago)
- Branch:
- actionsreloaded
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcaction.php
r1806 r1807 36 36 /** @var string current action, if any */ 37 37 protected $action; 38 /** @var array list of url parameters (usually $_POST) */ 39 protected $from; 38 40 39 41 /** @var string title for checkboxes list, if displayed */ … … 59 61 $this->action = ''; 60 62 $this->cb_title = __('Title'); 63 $this->from = new ArrayObject($_POST); 61 64 } 62 65 … … 240 243 */ 241 244 public function process() { 242 $from = new ArrayObject($_POST); 243 $this->setupRedir($ from);244 $this->fetchEntries($ from);245 if (isset($ from['action'])) {246 $this->action = $ from['action'];245 246 $this->setupRedir($this->from); 247 $this->fetchEntries($this->from); 248 if (isset($this->from['action'])) { 249 $this->action = $this->from['action']; 247 250 try { 248 251 $performed=false; 249 252 foreach ($this->actions as $k=>$v) { 250 if ($ from['action']==$k) {253 if ($this->from['action']==$k) { 251 254 $performed = true; 252 call_user_func($v,$this->core,$this,$ from);255 call_user_func($v,$this->core,$this,$this->from); 253 256 } 254 257 }
Note: See TracChangeset
for help on using the changeset viewer.