X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=ca62e0e0dece2575d9357f2ac6a661cf0cdfcefe;hb=9d00d8783e9d74343fc0ea34ab228ce70684e4e4;hp=895cc0e6355a7bff88ec839590b33174e2b231e9;hpb=6abd0c0c3b6f8a8f7eab7d4b93c47216e1827a05;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 895cc0e635..ca62e0e0de 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1489,10 +1489,10 @@ class Title implements LinkTarget { public function isRawHtmlMessage() { global $wgRawHtmlMessages; - if ( $this->inNamespace( NS_MEDIAWIKI ) ) { + if ( !$this->inNamespace( NS_MEDIAWIKI ) ) { return false; } - $message = lcfirst( $this->getRootText() ); + $message = lcfirst( $this->getRootTitle()->getDBkey() ); return in_array( $message, $wgRawHtmlMessages, true ); }