X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevision.php;h=cbaff90d6972e62c936713c7b24fe13d3c05695e;hb=8b26fc816ff5518726db80f518ad08460845ec6e;hp=bf3751896eced33474ef4b999f9baf16df6abc58;hpb=e26e0d1fc84693f488dd30bfc9c9648d8301fb79;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Revision.php b/includes/Revision.php index bf3751896e..cbaff90d69 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -330,7 +330,7 @@ class Revision implements IDBAccessObject { */ public static function pageJoinCond() { wfDeprecated( __METHOD__, '1.31' ); - return [ 'INNER JOIN', [ 'page_id = rev_page' ] ]; + return [ 'JOIN', [ 'page_id = rev_page' ] ]; } /** @@ -544,7 +544,7 @@ class Revision implements IDBAccessObject { * @param int $queryFlags * @param Title|null $title * - * @access private + * @private */ function __construct( $row, $queryFlags = 0, Title $title = null ) { global $wgUser; @@ -832,17 +832,15 @@ class Revision implements IDBAccessObject { } /** - * Fetch revision comment if it's available to the specified audience. - * If the specified audience does not have access to the comment, 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|null $user User object to check for, only if FOR_THIS_USER is passed * to the $audience parameter - * @return string + * + * @return string|null Returns null if the specified audience does not have access to the + * comment. */ function getComment( $audience = self::FOR_PUBLIC, User $user = null ) { global $wgUser;