Merge "mediawiki.special.upload: Don't fail when trying to thumbnail invalid file"
[lhc/web/wiklou.git] / includes / specials / SpecialUpload.php
index 2754b13..82e07fd 100644 (file)
@@ -622,7 +622,8 @@ class SpecialUpload extends SpecialPage {
                        return false;
                } else {
                        // New page should get watched if that's our option.
-                       return $this->getUser()->getOption( 'watchcreations' );
+                       return $this->getUser()->getOption( 'watchcreations' ) ||
+                               $this->getUser()->getOption( 'watchuploads' );
                }
        }