Harej has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/336050 )
Change subject: Fixing bug caused by non-existent image being used ...................................................................... Fixing bug caused by non-existent image being used Change-Id: I142685bd7dbd3e9f9d082d490423e5633f771921 --- M includes/content/CollaborationListContent.php 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit refs/changes/50/336050/1 diff --git a/includes/content/CollaborationListContent.php b/includes/content/CollaborationListContent.php index c2763be..960c76d 100644 --- a/includes/content/CollaborationListContent.php +++ b/includes/content/CollaborationListContent.php @@ -397,7 +397,10 @@ if ( $definedImage !== null && is_string( $definedImage ) ) { $imageTitle = Title::newFromText( $definedImage, NS_FILE ); if ( $imageTitle ) { - $image = wfFindFile( $imageTitle )->getName(); + $imageObj = wfFindFile( $imageTitle ); + if ( $imageObj ) { + $image = $imageObj->getName(); + } } } -- To view, visit https://gerrit.wikimedia.org/r/336050 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I142685bd7dbd3e9f9d082d490423e5633f771921 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CollaborationKit Gerrit-Branch: master Gerrit-Owner: Harej <jamesmh...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits