Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
b6258081
Commit
b6258081
authored
14 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
msgs are saved in send_redirect now, less code duplication needed
parent
0181f021
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/actions.php
+0
-10
0 additions, 10 deletions
inc/actions.php
lib/plugins/plugin/classes/ap_manage.class.php
+2
-11
2 additions, 11 deletions
lib/plugins/plugin/classes/ap_manage.class.php
with
2 additions
and
21 deletions
inc/actions.php
+
0
−
10
View file @
b6258081
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/plugin/classes/ap_manage.class.php
+
2
−
11
View file @
b6258081
...
...
@@ -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
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment