Skip to content

Commit

Permalink
var_table doesn't work anymore with modern Extension:Variables versio…
Browse files Browse the repository at this point in the history
…ns 2.4.1+
  • Loading branch information
FO-nTTaX committed Aug 28, 2018
1 parent ef94a51 commit d35745a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions Scribunto_LuaVariablesLuaLibrary.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public function register() {
'vardefine' => [ $this, 'fn_vardefine' ],
'vardefineecho' => [ $this, 'fn_vardefineecho' ],
'varexists' => [ $this, 'fn_varexists' ],
'var_table' => [ $this, 'fn_var_table' ],
];
return $this->getEngine()->registerInterface(
__DIR__ . '/mw.ext.VariablesLua.lua', $lib, []
Expand Down Expand Up @@ -54,9 +53,4 @@ public function fn_varexists() {
}
}

public function fn_var_table() {
$parser = $this->getParser();
return [ $parser->mExtVariables->mVariables ];
}

}
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "VariablesLua",
"version": "1.3.0",
"version": "1.4.0",
"author": [
"[https://fo-nttax.de Alex Winkler]"
],
Expand Down
4 changes: 0 additions & 4 deletions mw.ext.VariablesLua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ function VariablesLua.varexists( name )
return php.varexists( name )
end

function VariablesLua.var_table()
return php.var_table()
end

function VariablesLua.setupInterface( options )
-- Boilerplate
VariablesLua.setupInterface = nil
Expand Down

0 comments on commit d35745a

Please sign in to comment.