Robmoen has uploaded a new change for review. https://gerrit.wikimedia.org/r/232842
Change subject: Null is not falsy in js so always set the value of wgIsMainPage ...................................................................... Null is not falsy in js so always set the value of wgIsMainPage Change-Id: I2e39f939386f6d9254ef7e11cf584d7ce53e00c1 --- M includes/OutputPage.php 1 file changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/42/232842/1 diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 8d4720b..8860299 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3280,9 +3280,7 @@ $vars['wgRestriction' . ucfirst( $type )] = $title->getRestrictions( $type ); } - if ( $title->isMainPage() ) { - $vars['wgIsMainPage'] = true; - } + $vars['wgIsMainPage'] = $vars['wgIsMainPage'] ? true : false; if ( $this->mRedirectedFrom ) { $vars['wgRedirectedFrom'] = $this->mRedirectedFrom->getPrefixedDBkey(); -- To view, visit https://gerrit.wikimedia.org/r/232842 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2e39f939386f6d9254ef7e11cf584d7ce53e00c1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Robmoen <rm...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits