diff --git a/inc/common.php b/inc/common.php index 73e153947f318d3c6eed8ca24cb621936103a298..d58eacb7acb67ba8bf60fffcf4098a33a4e08e8d 100644 --- a/inc/common.php +++ b/inc/common.php @@ -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)); diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index 8ee81ed187693011c86a2887c7b9f362f6373478..26f6bcd45538121b37a29514e753617257320ba2 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -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.';