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