MarkTraceur has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204089
Change subject: Don't set a null context
......................................................................
Don't set a null context
Breaking Special:Specialpages on master now.
Bug: T96057
Change-Id: Ieb21b4d07af2dc8ea18016568c98b78e390ac2d5
---
M includes/specials/SpecialUpload.php
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/89/204089/1
diff --git a/includes/specials/SpecialUpload.php
b/includes/specials/SpecialUpload.php
index 8390feb..3f1ea42 100644
--- a/includes/specials/SpecialUpload.php
+++ b/includes/specials/SpecialUpload.php
@@ -787,7 +787,10 @@
protected $mMaxUploadSize = array();
public function __construct( array $options = array(), IContextSource
$context = null ) {
- $this->setContext( $context );
+ if ( $context instanceof IContextSource ) {
+ $this->setContext( $context );
+ }
+
$this->mWatch = !empty( $options['watch'] );
$this->mForReUpload = !empty( $options['forreupload'] );
$this->mSessionKey = isset( $options['sessionkey'] ) ?
$options['sessionkey'] : '';
--
To view, visit https://gerrit.wikimedia.org/r/204089
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieb21b4d07af2dc8ea18016568c98b78e390ac2d5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits