From 90e2073329cecbd86b196b954840ed187a041a8e Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 5 Jun 2012 20:29:40 -0400 Subject: [PATCH] (bug 37334) ForeignAPIFile::getDescription() should match parent Fix for I1dd54611, which changed File::getDescription() without updating ForeignAPIFile Change-Id: I4d4d43c3a07bb1dd1c0001779992024bef962640 --- includes/filerepo/file/ForeignAPIFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1