X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevision.php;h=f2ca79ae1564edfe304021095a4107a84982454d;hb=746fa545f0047ec7bcf18f773c224369e6b3172b;hp=aaf106967e35ead65ec78559c6e6872cc3573530;hpb=8aef89fdcc59361496adead46ed35c2f0d6485ed;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Revision.php b/includes/Revision.php index aaf106967e..f2ca79ae15 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -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;