From: Chad Horohoe Date: Wed, 6 Jun 2012 00:29:40 +0000 (-0400) Subject: (bug 37334) ForeignAPIFile::getDescription() should match parent X-Git-Tag: 1.31.0-rc.0~23387^2 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=90e2073329cecbd86b196b954840ed187a041a8e;p=lhc%2Fweb%2Fwiklou.git (bug 37334) ForeignAPIFile::getDescription() should match parent Fix for I1dd54611, which changed File::getDescription() without updating ForeignAPIFile Change-Id: I4d4d43c3a07bb1dd1c0001779992024bef962640 --- diff --git a/includes/filerepo/file/ForeignAPIFile.php b/includes/filerepo/file/ForeignAPIFile.php index 1fcd35ba55..56482611f8 100644 --- a/includes/filerepo/file/ForeignAPIFile.php +++ b/includes/filerepo/file/ForeignAPIFile.php @@ -196,7 +196,7 @@ class ForeignAPIFile extends File { /** * @return null|string */ - public function getDescription() { + public function getDescription( $audience = self::FOR_PUBLIC, User $user = null ) { return isset( $this->mInfo['comment'] ) ? strval( $this->mInfo['comment'] ) : null; }