Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/247466
Change subject: Use Title::getOtherPage()
......................................................................
Use Title::getOtherPage()
Change-Id: I7099550f3398383bd28d46f4730b904e81c5432c
---
M LocalGlobalUserPageCacheUpdateJob.php
1 file changed, 1 insertion(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalUserPage
refs/changes/66/247466/1
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: newchange
Gerrit-Change-Id: I7099550f3398383bd28d46f4730b904e81c5432c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalUserPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits