jenkins-bot has submitted this change and it was merged.
Change subject: Fix fatal on watchlist
......................................................................
Fix fatal on watchlist
Bug: 73074
Change-Id: If914a36c097f1df81ac9d5e12052dbcbeca5bd55
(cherry picked from commit 07e766885f1a5c0e857bf1d1adac50f7774dc50c)
---
M includes/Formatter/RecentChanges.php
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Formatter/RecentChanges.php
b/includes/Formatter/RecentChanges.php
index 1c73d9d..7e692d1 100644
--- a/includes/Formatter/RecentChanges.php
+++ b/includes/Formatter/RecentChanges.php
@@ -87,6 +87,11 @@
return parent::getTitleLink( $data, $row, $ctx );
}
+ if ( !isset( $data['links']['topic'] ) ||
!$data['links']['topic'] instanceof Anchor ) {
+ // no valid title anchor (probably header entry)
+ return parent::getTitleLink( $data, $row, $ctx );
+ }
+
$watched = $row->recentChange->getAttribute(
'wl_notificationtimestamp' );
if ( is_bool( $watched ) ) {
// RC & watchlist share most code; the latter is
unaware of when
--
To view, visit https://gerrit.wikimedia.org/r/171724
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If914a36c097f1df81ac9d5e12052dbcbeca5bd55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.25wmf7
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits