From: Brian Wolff Date: Fri, 20 Dec 2013 08:49:55 +0000 (-0700) Subject: Make the warning from TextContent::__construct show caller. X-Git-Tag: 1.31.0-rc.0~17561^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=7ebbd7174443ce46a40eb4f9307035e553e7f4ea;p=lhc%2Fweb%2Fwiklou.git Make the warning from TextContent::__construct show caller. Having the warning point to itself isn't very useful. Bug: 44898 Change-Id: Ia3e73477d323d17c9e97c2dd863255cc2e191f7f --- diff --git a/includes/content/TextContent.php b/includes/content/TextContent.php index ffb5cf27df..068b15028a 100644 --- a/includes/content/TextContent.php +++ b/includes/content/TextContent.php @@ -38,7 +38,7 @@ class TextContent extends AbstractContent { if ( $text === null || $text === false ) { wfWarn( "TextContent constructed with \$text = " . var_export( $text, true ) . "! " - . "This may indicate an error in the caller's scope." ); + . "This may indicate an error in the caller's scope.", 2 ); $text = ''; }