jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Idc2676a78327854f1faece4c3c991803b78a9ae6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to