dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65a304c
)
Make the warning from TextContent::__construct show caller.
author
Brian Wolff
<bawolff+wn@gmail.com>
Fri, 20 Dec 2013 08:49:55 +0000
(
01:49
-0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/includes/content/TextContent.php
b/includes/content/TextContent.php
index
ffb5cf2
..
068b150
100644
(file)
--- 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 = '';
}