From 7ab1858c8424ead9c6a848068086e12951241e1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 10 Apr 2015 18:14:38 +0200 Subject: [PATCH] Add second param to Title::newFromText warning so that called from works correctly Change-Id: Ib977acb9abfcc6e07019013c6f9fc20ece16245d --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index bf0fb8e1fd..86e9746181 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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(); -- 2.20.1