Changeset 2243:86b0bd224843 for inc
- Timestamp:
- 10/04/13 11:06:08 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcaction.php
r2169 r2243 52 52 /** @var boolean true if we are acting inside a plugin (different handling of begin/endpage) */ 53 53 protected $in_plugin; 54 55 /** @var boolean true if we enable to keep selection when redirecting */ 56 protected $enable_redir_selection; 54 57 55 58 /** … … 84 87 $u=explode('?',$_SERVER['REQUEST_URI']); 85 88 $this->in_plugin = (strpos($u[0],'plugin.php') !== false); 89 $this->enable_redir_selection = true; 90 } 91 92 /** 93 * setEnableRedirSelection - define whether to keep selection when redirecting 94 * Can be usefull to be disabled to preserve some compatibility. 95 * 96 * @param boolean $enable true to enable, false otherwise 97 * 98 * @access public 99 */ 100 public function setEnableRedirSelection($enable) { 101 $this->enable_redir_selection = $enable; 86 102 } 87 103 … … 227 243 public function getRedirection($with_selected_entries=false,$params=array()) { 228 244 $redir_args = array_merge($params,$this->redir_args); 229 if ($with_selected_entries) { 245 if (isset($redir_args['redir'])) { 246 unset($redir_args['redir']); 247 } 248 249 if ($with_selected_entries && $this->enable_redir_selection) { 230 250 $redir_args[$this->field_entries] = array_keys($this->entries); 231 251 }
Note: See TracChangeset
for help on using the changeset viewer.