Add function present in ordinary converter to FakeConverter

This commit is contained in:
Max Semenik 2012-01-29 12:49:14 +00:00
parent 6554e9877d
commit cbb4b4716d

View file

@ -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(); }