From 7e7178e341d897b048297a0b87850e11b00874f6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 12 Apr 2010 10:23:09 +0000 Subject: [PATCH] Partial fix to bug 23167 Api doesn't watch new file on upload (and didn't previously). Now watches on creation --- includes/api/ApiUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] ) { -- 2.20.1