mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-09-23 18:30:32 +00:00
Remove old check for luasandbox extension
Change-Id: I08594015ce044d7fab129b8bbbef2a92382f6870
This commit is contained in:
parent
b0f00103e2
commit
16d132312f
|
@ -15,10 +15,6 @@ abstract class Scribunto_LuaEngine extends ScribuntoEngineBase {
|
|||
return;
|
||||
}
|
||||
|
||||
if( !MWInit::classExists( 'luasandbox' ) ) {
|
||||
throw new MWException( 'luasandbox PHP extension is not installed' );
|
||||
}
|
||||
|
||||
$this->interpreter = $this->newInterpreter();
|
||||
$this->interpreter->registerLibrary( 'mw', array( 'import' => array( $this, 'importModule' ) ) );
|
||||
$module = $this->loadLibraryFromFile( dirname( __FILE__ ) .'/lualib/mw.lua' );
|
||||
|
|
Loading…
Reference in a new issue