Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/191404
Change subject: CampaignHooks: protect against OutputPage not having a title
......................................................................
CampaignHooks: protect against OutputPage not having a title
Bug: T62051
Change-Id: Idc2676a78327854f1faece4c3c991803b78a9ae6
---
M includes/CampaignHooks.php
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/04/191404/1
diff --git a/includes/CampaignHooks.php b/includes/CampaignHooks.php
index c309b0d..e2ca1f1 100644
--- a/includes/CampaignHooks.php
+++ b/includes/CampaignHooks.php
@@ -169,9 +169,7 @@
*/
static function onBeforePageDisplay( &$out, &$skin ) {
$title = $out->getTitle();
- $revId = $out->getRevisionId();
-
- if ( $title->inNamespace( NS_CAMPAIGN ) ) {
+ if ( $title && $title->inNamespace( NS_CAMPAIGN ) ) {
$out->addModules(
'ext.uploadWizard.uploadCampaign.display' );
}
return true;
--
To view, visit https://gerrit.wikimedia.org/r/191404
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc2676a78327854f1faece4c3c991803b78a9ae6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits