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:
d5fbf47
)
API: (bug 20816) Editing a page with &watchlist=preferences (default) unwatches it...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sat, 26 Sep 2009 09:22:44 +0000
(09:22 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sat, 26 Sep 2009 09:22:44 +0000
(09:22 +0000)
includes/api/ApiEditPage.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiEditPage.php
b/includes/api/ApiEditPage.php
index
a9d489d
..
bc2ede0
100644
(file)
--- a/
includes/api/ApiEditPage.php
+++ b/
includes/api/ApiEditPage.php
@@
-180,7
+180,7
@@
class ApiEditPage extends ApiBase {
break;
case 'preferences':
if ($titleObj->exists())
- $watch = $wgUser->getOption('watchdefault');
+ $watch = $wgUser->getOption('watchdefault')
|| $titleObj->userIsWatching()
;
else
$watch = $wgUser->getOption('watchcreations');
break;