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:
0793619
)
on SJS Web Server with action paths, 'action' is always set. this caused WatchlistEd...
author
River Tarnell
<river@users.mediawiki.org>
Thu, 8 May 2008 16:06:21 +0000
(16:06 +0000)
committer
River Tarnell
<river@users.mediawiki.org>
Thu, 8 May 2008 16:06:21 +0000
(16:06 +0000)
includes/WatchlistEditor.php
patch
|
blob
|
history
diff --git
a/includes/WatchlistEditor.php
b/includes/WatchlistEditor.php
index
172cf4b
..
6a39acb
100644
(file)
--- a/
includes/WatchlistEditor.php
+++ b/
includes/WatchlistEditor.php
@@
-431,7
+431,8
@@
class WatchlistEditor {
* @return int
*/
public static function getMode( $request, $par ) {
- $mode = strtolower( $request->getVal( 'action', $par ) );
+ if (($mode = $par) === "")
+ $mode = strtolower( $request->getVal( 'action', "" ) );
switch( $mode ) {
case 'clear':
return self::EDIT_CLEAR;