Robmoen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/207660

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/60/207660/1

diff --git a/includes/views/Collection.php b/includes/views/Collection.php
index cd56709..1a4931a 100644
--- a/includes/views/Collection.php
+++ b/includes/views/Collection.php
@@ -133,7 +133,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/207660
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8cb92ae3fc62a32519f773d43150e9d425afce70
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Robmoen <rm...@wikimedia.org>

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

Reply via email to