mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 02:54:26 +00:00
df38a296bf
Scribunto currently supports libraries with PHP callbacks that are loaded on startup, and pure-Lua libraries that may be loaded from the module with require(). This change allows for libraries with PHP callbacks to also be loaded with require(). Change-Id: Ibdc1f4ef51b1c8644c3d4c98d57755b5c06447a5
8 lines
175 B
PHP
8 lines
175 B
PHP
<?php
|
|
|
|
class Scribunto_LuaHtmlLibrary extends Scribunto_LuaLibraryBase {
|
|
function register() {
|
|
return $this->getEngine()->registerInterface( 'mw.html.lua', array() );
|
|
}
|
|
}
|