Make the warning from TextContent::__construct show caller.
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Dec 2013 08:49:55 +0000 (01:49 -0700)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Dec 2013 08:49:55 +0000 (01:49 -0700)
Having the warning point to itself isn't very useful.

Bug: 44898
Change-Id: Ia3e73477d323d17c9e97c2dd863255cc2e191f7f

includes/content/TextContent.php

index ffb5cf2..068b150 100644 (file)
@@ -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 = '';
                }