Jdlrobson has uploaded a new change for review.

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


Change subject: Profile: Get correct file for profile page
......................................................................

Profile: Get correct file for profile page

Change-Id: Ida433b4f165dc60181e7c25a15cee2dae84a1409
---
M includes/specials/SpecialUserProfile.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/35/85935/1

diff --git a/includes/specials/SpecialUserProfile.php 
b/includes/specials/SpecialUserProfile.php
index 63afbf7..4b4e6ed 100644
--- a/includes/specials/SpecialUserProfile.php
+++ b/includes/specials/SpecialUserProfile.php
@@ -101,7 +101,7 @@
                $res = $dbr->select( 'image', 'img_name, img_timestamp', 
$where, __METHOD__, $constraints );
                foreach( $res as $row ) {
                        $name = $row->img_name;
-                       $file = wfLocalFile( $name );
+                       $file = wfFindFile( $name );
                        $title = Title::newFromText( $name, NS_FILE );
                        $ts = new MWTimestamp( wfTimestamp( TS_UNIX, 
$row->img_timestamp ) );
                        $daysAgo = $this->getDaysAgo( $ts );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida433b4f165dc60181e7c25a15cee2dae84a1409
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to