Parser: Use 'Special:Badtitle/Parser' instead of 'NO TITLE'
authorFomafix <fomafix@googlemail.com>
Fri, 30 Aug 2019 09:43:35 +0000 (11:43 +0200)
committerFomafix <fomafix@googlemail.com>
Sun, 22 Sep 2019 19:35:15 +0000 (21:35 +0200)
Change-Id: I818ac7d4766c3e52b56c2bd4abddb88e4140003b

includes/parser/Parser.php

index a19f86c..121afed 100644 (file)
@@ -908,7 +908,7 @@ class Parser {
         */
        public function setTitle( $t ) {
                if ( !$t ) {
-                       $t = Title::newFromText( 'NO TITLE' );
+                       $t = Title::makeTitle( NS_SPECIAL, 'Badtitle/Parser' );
                }
 
                if ( $t->hasFragment() ) {