Changeset 2261:e7aa9cffbc30
- Timestamp:
- 10/04/13 18:11:26 (12 years ago)
- Branch:
- dcRepo
- Children:
- 2267:e59137433afb, 2268:daa30c459777
- Parents:
- 2259:6aaea2c2e0f7 (diff), 2260:592e42e0b7fb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.moduleslist.php
r2259 r2261 1210 1210 if ($has_details || $has_support) { 1211 1211 $line .= 1212 '<span class="mod-more">' .__('Help:').' ';1212 '<span class="mod-more">'; 1213 1213 1214 1214 if ($has_details) { … … 1245 1245 } 1246 1246 1247 $line .= '<div class="current-actions">'; 1248 1247 1249 if (file_exists(path::real($this->core->blog->themes_path.'/'.$id).'/_config.php')) { 1248 1250 $line .= … … 1253 1255 $line .= 1254 1256 $this->core->callBehavior('adminCurrentThemeDetails', $this->core, $id, $module); 1257 1258 $line .= '</div>'; 1255 1259 } 1256 1260 -
inc/admin/lib.moduleslist.php
r2260 r2261 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.