Pass correct function name to checkType

Change-Id: Ib221c3195c0826610c9d3c470a4923ccf54f90e9
This commit is contained in:
Amir E. Aharoni 2014-09-26 22:53:05 +02:00
parent ffe675735c
commit 011610e770

View file

@ -94,7 +94,7 @@ class Scribunto_LuaLanguageLibrary extends Scribunto_LuaLibraryBase {
}
function getFallbacksFor( $code ) {
$this->checkType( 'fetchLanguageNames', 1, $code , 'string' );
$this->checkType( 'getFallbacksFor', 1, $code , 'string' );
$ret = Language::getFallbacksFor( $code );
// Make 1-based
if ( count( $ret ) ) {