summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-23 22:07:26 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-23 22:07:26 +0100
commit8fcb305db0081dacd8e8ad0583da5ecc6c6837dc (patch)
tree928fc44fde692835bca9dd304ebcb17cdd710ac8 /inc/common.php
parent4d5954c8d1f8bcc5450f8cf70d8139cf5a1e697d (diff)
parent5d873dd4ce31c79403a01ac0e40ff148be282592 (diff)
downloadrpg-8fcb305db0081dacd8e8ad0583da5ecc6c6837dc.tar.gz
rpg-8fcb305db0081dacd8e8ad0583da5ecc6c6837dc.tar.bz2
Merge remote-tracking branch 'origin/master' into diff_navigation
Conflicts: inc/html.php
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/common.php b/inc/common.php
index 7821cb3de..247d4823b 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -155,12 +155,13 @@ function pageinfo() {
$info['subscribed'] = false;
}
- $info['locked'] = checklock($ID);
- $info['filepath'] = fullpath(wikiFN($ID));
- $info['exists'] = @file_exists($info['filepath']);
+ $info['locked'] = checklock($ID);
+ $info['filepath'] = fullpath(wikiFN($ID));
+ $info['exists'] = @file_exists($info['filepath']);
+ $info['currentrev'] = @filemtime($info['filepath']);
if($REV) {
//check if current revision was meant
- if($info['exists'] && (@filemtime($info['filepath']) == $REV)) {
+ if($info['exists'] && ($info['currentrev'] == $REV)) {
$REV = '';
} elseif($RANGE) {
//section editing does not work with old revisions!