Remove unused parameter
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 16:33:21 +0000 (17:33 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 16:33:21 +0000 (17:33 +0100)
Found by PHPStan.

Change-Id: I0480146fd7fce1d39db904f1c4b6dfa8314a74fe

includes/page/Article.php

index 9f7f280..4b0d319 100644 (file)
@@ -295,7 +295,7 @@ class Article implements Page {
                        $content = ContentHandler::makeContent( $text, $this->getTitle() );
                } else {
                        $message = $this->getContext()->getUser()->isLoggedIn() ? 'noarticletext' : 'noarticletextanon';
-                       $content = new MessageContent( $message, null, 'parsemag' );
+                       $content = new MessageContent( $message, null );
                }
 
                return $content;