Add second param to Title::newFromText warning so that called from works correctly
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Fri, 10 Apr 2015 16:14:38 +0000 (18:14 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 12 Apr 2015 15:34:24 +0000 (15:34 +0000)
Change-Id: Ib977acb9abfcc6e07019013c6f9fc20ece16245d

includes/Title.php

index bf0fb8e..86e9746 100644 (file)
@@ -263,7 +263,7 @@ class Title {
                if ( is_object( $text ) ) {
                        throw new InvalidArgumentException( '$text must be a string.' );
                } elseif ( !is_string( $text ) ) {
-                       wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.' );
+                       wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.', 2 );
                }
 
                $cache = self::getTitleCache();