From: Niklas Laxström Date: Fri, 10 Apr 2015 16:14:38 +0000 (+0200) Subject: Add second param to Title::newFromText warning so that called from works correctly X-Git-Tag: 1.31.0-rc.0~11736 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=7ab1858c8424ead9c6a848068086e12951241e1e;p=lhc%2Fweb%2Fwiklou.git Add second param to Title::newFromText warning so that called from works correctly Change-Id: Ib977acb9abfcc6e07019013c6f9fc20ece16245d --- 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();