X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStatus.php;h=f17f173edc4ca9a26448cbbe5940dbf5e043a16f;hb=d77dfda69e491d536bd33fa098d7539db361086a;hp=07828fec7c7f6a713b6d13bc0b9f05e0ceef42a6;hpb=eb53a231a7ec3b5c8f42c056ba041b23ae181b1d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Status.php b/includes/Status.php index 07828fec7c..f17f173edc 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -113,7 +113,7 @@ class Status extends StatusValue { * 1 => object(Status) # The Status with warning messages, only * ] * - * @return array + * @return Status[] */ public function splitByErrorType() { list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType(); @@ -316,7 +316,9 @@ class Status extends StatusValue { $lang = $this->languageFromParam( $lang ); $text = $this->getWikiText( $shortContext, $longContext, $lang ); $out = MessageCache::singleton()->parse( $text, null, true, true, $lang ); - return $out instanceof ParserOutput ? $out->getText() : $out; + return $out instanceof ParserOutput + ? $out->getText( [ 'enableSectionEditLinks' => false ] ) + : $out; } /**