Matthias Mullie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/171611
Change subject: Fix fatal on watchlist
......................................................................
Fix fatal on watchlist
Bug: 73074
Change-Id: If914a36c097f1df81ac9d5e12052dbcbeca5bd55
---
M includes/Formatter/RecentChanges.php
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/11/171611/1
diff --git a/includes/Formatter/RecentChanges.php
b/includes/Formatter/RecentChanges.php
index 0a760cb..4e4e704 100644
--- a/includes/Formatter/RecentChanges.php
+++ b/includes/Formatter/RecentChanges.php
@@ -131,6 +131,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/171611
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If914a36c097f1df81ac9d5e12052dbcbeca5bd55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits