From: Sam Reed Date: Mon, 12 Apr 2010 10:23:09 +0000 (+0000) Subject: Partial fix to bug 23167 X-Git-Tag: 1.31.0-rc.0~37136 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=7e7178e341d897b048297a0b87850e11b00874f6;p=lhc%2Fweb%2Fwiklou.git Partial fix to bug 23167 Api doesn't watch new file on upload (and didn't previously). Now watches on creation --- diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index f81ea24cff..34691334db 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -248,7 +248,7 @@ class ApiUpload extends ApiBase { } $file = $this->mUpload->getLocalFile(); - $watch = $this->getWatchlistValue( $params['watchlist'], $file->getTitle() ); + $watch = $this->getWatchlistValue( $params['watchlist'], $file->getTitle() ) || $wgUser->getOption( 'watchcreations' ); // Deprecated parameters if ( $this->mParams['watch'] ) {