From 7ebbd7174443ce46a40eb4f9307035e553e7f4ea Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 20 Dec 2013 01:49:55 -0700 Subject: [PATCH] Make the warning from TextContent::__construct show caller. Having the warning point to itself isn't very useful. Bug: 44898 Change-Id: Ia3e73477d323d17c9e97c2dd863255cc2e191f7f --- includes/content/TextContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; } -- 2.20.1