jenkins-bot has submitted this change and it was merged.

Change subject: Fix php fatal error on empty collection message
......................................................................


Fix php fatal error on empty collection message

PHP Fatal error:  Call to a member function getName()

Change-Id: I8cb92ae3fc62a32519f773d43150e9d425afce70
---
M includes/views/Collection.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/views/Collection.php b/includes/views/Collection.php
index 0f4de6f..62669b8 100644
--- a/includes/views/Collection.php
+++ b/includes/views/Collection.php
@@ -130,7 +130,7 @@
                return Html::openElement( 'div', array( 'class' => 
'collection-empty' ) ) .
                        Html::element( 'h3', array(), wfMessage( 'gather-empty' 
)->text() ) .
                        Html::element( 'div', array(),
-                               wfMessage( $key, $user->getName() )->text() ) .
+                               wfMessage( $key, $this->user->getName() 
)->text() ) .
                        Html::closeElement( 'div' );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/207666
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8cb92ae3fc62a32519f773d43150e9d425afce70
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: wmf/1.26wmf3
Gerrit-Owner: Robmoen <rm...@wikimedia.org>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to