Skip to content
Snippets Groups Projects
Commit b6258081 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

msgs are saved in send_redirect now, less code duplication needed

parent 0181f021
No related branches found
No related tags found
No related merge requests found
......@@ -387,16 +387,6 @@ function act_revert($act){
function act_redirect($id,$preact){
global $PRE;
global $TEXT;
global $MSG;
//are there any undisplayed messages? keep them in session for display
//on the next page
if(isset($MSG) && count($MSG)){
//reopen session, store data and close session again
@session_start();
$_SESSION[DOKU_COOKIE]['msg'] = $MSG;
session_write_close();
}
$opts = array(
'id' => $id,
......
......@@ -113,23 +113,14 @@ class ap_manage {
* Refresh plugin list
*/
function refresh() {
global $MSG,$config_cascade;
//are there any undisplayed messages? keep them in session for display
if (isset($MSG) && count($MSG)){
//reopen session, store data and close session again
@session_start();
$_SESSION[DOKU_COOKIE]['msg'] = $MSG;
session_write_close();
}
global $config_cascade;
// expire dokuwiki caches
// touching local.php expires wiki page, JS and CSS caches
@touch(reset($config_cascade['main']['local']));
// update latest plugin date - FIXME
header('Location: '.wl($ID).'?do=admin&page=plugin');
exit();
send_redirect(wl($ID,array('do'=>'admin','page'=>'plugin'),true));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment