r64198 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r64197
|
r64198
|
r64199
>
Date:
22:31, 25 March 2010
Author:
reedy
Status:
reverted (
Comments
)
Tags:
Comment:
Minor followup to
r64197
Allow unwatch via ApiUpload, UploadBase doesn't allow/cater for unwatching, so use the $wgUser object to do it, rather than possibly causing a breaking change in UploadBase
Modified paths:
/trunk/phase3/includes/api/ApiUpload.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/api/ApiUpload.php
—
—
@@ -236,8 +236,13 @@
237
237
238
238
$this->dieUsage( 'An internal error occurred', 'internal-error', 0, $error );
239
239
}
240
-
240
+
241
241
$file = $this->mUpload->getLocalFile();
242
+
243
+ if ( !$watch ) {
244
+ $wgUser->removeWatch( $file->getTitle() );
245
+ }
246
+
242
247
$result['result'] = 'Success';
243
248
$result['filename'] = $file->getName();
244
249
$result['imageinfo'] = $this->mUpload->getImageInfo( $this->getResult() );
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r64197
Fix
bug 22944
in a much better fashion (using watchlist parameter)...
reedy
22:15, 25 March 2010
Comments
#
Comment by
Reedy
(
talk
|
contribs
)
08:57, 7 April 2010
Marking as reverted (was during mass better fix for this)
Status & tagging log
08:57, 7 April 2010
Reedy
(
talk
|
contribs
)
changed the
status
of r64198
[
removed:
new
added:
reverted]