Remove old check for luasandbox extension

Change-Id: I08594015ce044d7fab129b8bbbef2a92382f6870
This commit is contained in:
tstarling 2012-04-16 15:06:06 +10:00
parent b0f00103e2
commit 16d132312f

View file

@ -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' );