Minor code cleanup.

* Remove an unused message.
* Remove an unused skin reference which caused notices.

Change-Id: I5d051f3a04da089e1789fd785a80c91b5be9a340
This commit is contained in:
Victor Vasiliev 2012-04-29 18:13:52 +04:00
parent fa6dd44957
commit f311f8bc96
2 changed files with 0 additions and 3 deletions

View file

@ -21,7 +21,6 @@ $messages['en'] = array(
'scribunto-error-long' => 'Script errors: 'scribunto-error-long' => 'Script errors:
$1', $1',
'scribunto-common-toofewargs' => 'Lua error: Too few arguments to function $2',
'scribunto-common-nosuchmodule' => 'Script error: No such module', 'scribunto-common-nosuchmodule' => 'Script error: No such module',
'scribunto-common-nofunction' => 'Script error: You must specify a function to call.', 'scribunto-common-nofunction' => 'Script error: You must specify a function to call.',
'scribunto-common-nosuchfunction' => 'Script error: The function you specified did not exist.', 'scribunto-common-nosuchfunction' => 'Script error: The function you specified did not exist.',

View file

@ -241,8 +241,6 @@ class Scribunto_LuaError extends ScribuntoException {
if ( !isset( $this->params['trace'] ) ) { if ( !isset( $this->params['trace'] ) ) {
return false; return false;
} }
global $wgUser;
$skin = $wgUser->getSkin();
if ( isset( $options['msgOptions'] ) ){ if ( isset( $options['msgOptions'] ) ){
$msgOptions = $options['msgOptions']; $msgOptions = $options['msgOptions'];
} else { } else {