jenkins-bot has submitted this change and it was merged.
Change subject: Use Title::getOtherPage()
......................................................................
Use Title::getOtherPage()
Change-Id: I7099550f3398383bd28d46f4730b904e81c5432c
---
M LocalGlobalUserPageCacheUpdateJob.php
1 file changed, 1 insertion(+), 5 deletions(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/LocalGlobalUserPageCacheUpdateJob.php
b/LocalGlobalUserPageCacheUpdateJob.php
index 6025d36..4d7910c 100644
--- a/LocalGlobalUserPageCacheUpdateJob.php
+++ b/LocalGlobalUserPageCacheUpdateJob.php
@@ -16,11 +16,7 @@
public function run() {
$title = Title::makeTitleSafe( NS_USER,
$this->params['username'] );
// We want to purge the cache of the accompanying page so the
tabs change colors
- if ( $title->isTalkPage() ) {
- $other = $title->getSubjectPage();
- } else {
- $other = $title->getTalkPage();
- }
+ $other = $title->getOtherPage();
$title->purgeSquid();
$other->purgeSquid();
--
To view, visit https://gerrit.wikimedia.org/r/247466
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7099550f3398383bd28d46f4730b904e81c5432c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalUserPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits