Changeset 2259:6aaea2c2e0f7 for inc/admin/lib.moduleslist.php
- Timestamp:
- 10/04/13 16:33:44 (12 years ago)
- Branch:
- dcRepo
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.moduleslist.php
r2252 r2259 42 42 protected $page_qs = '?'; /**< @var string Page query string */ 43 43 protected $page_tab = ''; /**< @var string Page tab */ 44 protected $page_redir = ''; /**< @var string Page redirection */ 44 45 45 46 public static $nav_indexes = 'abcdefghijklmnopqrstuvwxyz0123456789'; /**< @var string Index list */ … … 203 204 { 204 205 return $this->page_tab; 206 } 207 208 /** 209 * Set page redirection. 210 * 211 * @param string $default Default redirection 212 * @return adminModulesList self instance 213 */ 214 public function setRedir($default='') 215 { 216 $this->page_redir = empty($_REQUEST['redir']) ? $default : $_REQUEST['redir']; 217 218 return $this; 219 } 220 221 /** 222 * Get page redirection. 223 * 224 * @return Page redirection 225 */ 226 public function getRedir() 227 { 228 return empty($this->page_redir) ? $this->getURL() : $this->page_redir; 205 229 } 206 230 //@} … … 1004 1028 return null; 1005 1029 } 1030 $this->setRedir($this->getURL().'#plugins'); 1006 1031 1007 1032 ob_start(); … … 1036 1061 { 1037 1062 if ($this->config_file) { 1038 $redir = empty($_REQUEST['redir']) ? $this->getURL().'#plugins' : $_REQUEST['redir'];1039 1063 1040 1064 if (!$this->config_module['standalone_config']) { … … 1042 1066 '<form id="module_config" action="'.$this->getURL('conf=1').'" method="post" enctype="multipart/form-data">'. 1043 1067 '<h3>'.sprintf(__('Configure plugin "%s"'), html::escapeHTML($this->config_module['name'])).'</h3>'. 1044 '<p><a class="back" href="'.$ redir.'">'.__('Back').'</a></p>';1068 '<p><a class="back" href="'.$this->getRedir().'">'.__('Back').'</a></p>'; 1045 1069 } 1046 1070 … … 1051 1075 '<p class="clear"><input type="submit" name="save" value="'.__('Save').'" />'. 1052 1076 form::hidden('module', $this->config_module['id']). 1053 form::hidden('redir', $ redir).1077 form::hidden('redir', $this->getRedir()). 1054 1078 $this->core->formNonce().'</p>'. 1055 1079 '</form>';
Note: See TracChangeset
for help on using the changeset viewer.