X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevision.php;h=d9e42ffd8b0efa2b3650ad68b316f148bf322eec;hb=dffa61be3e9d245871d04980ed584cfbdaef05e3;hp=8721ef9a56fb04bc36e581e5910459547f0aacf7;hpb=04849a9127b4300100cfe1923b68c984134a7662;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Revision.php b/includes/Revision.php index 8721ef9a56..d9e42ffd8b 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -1035,28 +1035,6 @@ class Revision implements IDBAccessObject { return (int)$this->mDeleted; } - /** - * Fetch revision text if it's available to the specified audience. - * If the specified audience does not have the ability to view this - * revision, an empty string will be returned. - * - * @param int $audience One of: - * Revision::FOR_PUBLIC to be displayed to all users - * Revision::FOR_THIS_USER to be displayed to the given user - * Revision::RAW get the text regardless of permissions - * @param User $user User object to check for, only if FOR_THIS_USER is passed - * to the $audience parameter - * - * @deprecated since 1.21, use getContent() instead - * @return string - */ - public function getText( $audience = self::FOR_PUBLIC, User $user = null ) { - wfDeprecated( __METHOD__, '1.21' ); - - $content = $this->getContent( $audience, $user ); - return ContentHandler::getContentText( $content ); # returns the raw content text, if applicable - } - /** * Fetch revision content if it's available to the specified audience. * If the specified audience does not have the ability to view this