diff options
author | Denis Simakov <akinoame1@gmail.com> | 2006-05-22 20:20:43 +0200 |
---|---|---|
committer | Denis Simakov <akinoame1@gmail.com> | 2006-05-22 20:20:43 +0200 |
commit | 306b2c8594cf19e54f0b855eab0f898f064c5b67 (patch) | |
tree | e08c4fe34c1e12412287e0dc2123ca7c766d03cb | |
parent | 018a837f3cecfae17b9547f38110335bd4ff2fe2 (diff) | |
download | rpg-306b2c8594cf19e54f0b855eab0f898f064c5b67.tar.gz rpg-306b2c8594cf19e54f0b855eab0f898f064c5b67.tar.bz2 |
fix: wrong secedit when page changes
Binds secedit buttons to file modification stamp ('lastmod'), so that if the page changes in between, editing of the old revision starts.
darcs-hash:20060522182043-3c565-17e6ac5d018300dd009c24218f4b1b8c8ae80363.gz
-rw-r--r-- | inc/html.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index dbd8cd77d..1dc0d5759 100644 --- a/inc/html.php +++ b/inc/html.php @@ -136,12 +136,14 @@ function html_editbutton(){ function html_secedit_button($section,$p){ global $ID; global $lang; + global $INFO; $secedit = ''; # if($p) $secedit .= "</p>\n"; $secedit .= '<div class="secedit">'; $secedit .= html_btn('secedit',$ID,'', array('do' => 'edit', - 'lines' => "$section"), + 'lines' => "$section", + 'rev' => $INFO['lastmod']), 'post'); $secedit .= '</div>'; # if($p) $secedit .= "\n<p>"; |