dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2057f3f
)
Some browsers allow submission of the form without setting wpSave. Restoring the...
author
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 9 Apr 2004 15:24:22 +0000
(15:24 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 9 Apr 2004 15:24:22 +0000
(15:24 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
6fe2392
..
4293b84
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-52,7
+52,6
@@
class EditPage {
}
return;
}
}
return;
}
- if( !$wgRequest->wasPosted() ) $this->save = false;
if ( $this->save ) {
$this->editForm( "save" );
} else if ( $this->preview ) {
if ( $this->save ) {
$this->editForm( "save" );
} else if ( $this->preview ) {
@@
-73,8
+72,8
@@
class EditPage {
$this->edittime = $request->getVal( 'wpEdittime' );
if( !preg_match( '/^\d{14}$/', $this->edittime ) ) $this->edittime = "";
$this->edittime = $request->getVal( 'wpEdittime' );
if( !preg_match( '/^\d{14}$/', $this->edittime ) ) $this->edittime = "";
- $this->save = $request->getCheck( 'wpSave' );
$this->preview = $request->getCheck( 'wpPreview' );
$this->preview = $request->getCheck( 'wpPreview' );
+ $this->save = $request->wasPosted() && !$this->preview;
$this->minoredit = $request->getCheck( 'wpMinoredit' );
$this->watchthis = $request->getCheck( 'wpWatchthis' );
$this->minoredit = $request->getCheck( 'wpMinoredit' );
$this->watchthis = $request->getCheck( 'wpWatchthis' );