Add function present in ordinary converter to FakeConverter
This commit is contained in:
parent
6554e9877d
commit
cbb4b4716d
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ class FakeConverter {
|
|||
function __construct( $langobj ) { $this->mLang = $langobj; }
|
||||
function autoConvertToAllVariants( $text ) { return array( $this->mLang->getCode() => $text ); }
|
||||
function convert( $t ) { return $t; }
|
||||
function convertTo( $text, $variant ) { return $text; }
|
||||
function convertTitle( $t ) { return $t->getPrefixedText(); }
|
||||
function getVariants() { return array( $this->mLang->getCode() ); }
|
||||
function getPreferredVariant() { return $this->mLang->getCode(); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue