(bug 37334) ForeignAPIFile::getDescription() should match parent
authorChad Horohoe <chadh@wikimedia.org>
Wed, 6 Jun 2012 00:29:40 +0000 (20:29 -0400)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 6 Jun 2012 00:29:40 +0000 (20:29 -0400)
Fix for I1dd54611, which changed File::getDescription() without updating
ForeignAPIFile

Change-Id: I4d4d43c3a07bb1dd1c0001779992024bef962640

includes/filerepo/file/ForeignAPIFile.php

index 1fcd35b..5648261 100644 (file)
@@ -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;
        }