Page MenuHomePhabricator
Authored By
Jackmcbarn
Dec 21 2014, 9:08 PM
Size
1 KB
Referenced Files
None
Subscribers
None

git.diff

diff --git a/engines/LuaCommon/LuaCommon.php b/engines/LuaCommon/LuaCommon.php
index 377d50b..770b1ee 100644
--- a/engines/LuaCommon/LuaCommon.php
+++ b/engines/LuaCommon/LuaCommon.php
@@ -937,13 +937,13 @@ class Scribunto_LuaError extends ScribuntoException {
if ( strval( $info['namewhat'] ) !== '' ) {
$function = wfMessage( 'scribunto-lua-in-function', $info['name'] );
in_array( 'content', $msgOptions ) ?
- $function = $function->inContentLanguage()->text() :
- $function = $function->text();
+ $function = $function->inContentLanguage()->escaped() :
+ $function = $function->escaped();
} elseif ( $info['what'] == 'main' ) {
$function = wfMessage( 'scribunto-lua-in-main' );
in_array( 'content', $msgOptions ) ?
- $function = $function->inContentLanguage()->text() :
- $function = $function->text();
+ $function = $function->inContentLanguage()->escaped() :
+ $function = $function->escaped();
} else {
// C function, tail call, or a Lua function where Lua can't
// guess the name

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22291
Default Alt Text
git.diff (1 KB)

Event Timeline