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
7b3a6803
Commit
7b3a6803
authored
16 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
Avoid editing sections of outdated pages FS#1513
darcs-hash:20081016181955-7ad00-5745635416542fd04dbdf67cbf043bf446e995bc.gz
parent
f948eeab
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/common.php
+7
-0
7 additions, 0 deletions
inc/common.php
inc/lang/en/lang.php
+1
-0
1 addition, 0 deletions
inc/lang/en/lang.php
with
8 additions
and
0 deletions
inc/common.php
+
7
−
0
View file @
7b3a6803
...
...
@@ -99,8 +99,10 @@ function formSecurityToken($print=true){
function
pageinfo
(){
global
$ID
;
global
$REV
;
global
$RANGE
;
global
$USERINFO
;
global
$conf
;
global
$lang
;
// include ID & REV not redundant, as some parts of DokuWiki may temporarily change $ID, e.g. p_wiki_xhtml
// FIXME ... perhaps it would be better to ensure the temporary changes weren't necessary
...
...
@@ -143,6 +145,11 @@ function pageinfo(){
//check if current revision was meant
if
(
$info
[
'exists'
]
&&
(
@
filemtime
(
$info
[
'filepath'
])
==
$REV
)){
$REV
=
''
;
}
elseif
(
$RANGE
){
//section editing does not work with old revisions!
$REV
=
''
;
$RANGE
=
''
;
msg
(
$lang
[
'nosecedit'
],
0
);
}
else
{
//really use old revision
$info
[
'filepath'
]
=
fullpath
(
wikiFN
(
$ID
,
$REV
));
...
...
This diff is collapsed.
Click to expand it.
inc/lang/en/lang.php
+
1
−
0
View file @
7b3a6803
...
...
@@ -64,6 +64,7 @@ $lang['profile'] = 'User Profile';
$lang
[
'badlogin'
]
=
'Sorry, username or password was wrong.'
;
$lang
[
'minoredit'
]
=
'Minor Changes'
;
$lang
[
'draftdate'
]
=
'Draft autosaved on'
;
// full dformat date will be added
$lang
[
'nosecedit'
]
=
'The page was changed in the meantime, section info was out of date loaded full page instead.'
;
$lang
[
'regmissing'
]
=
'Sorry, you must fill in all fields.'
;
$lang
[
'reguexists'
]
=
'Sorry, a user with this login already exists.'
;
...
...
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