class Digit2Html extends Maintenance {
# A list of unicode numerals is available at:
- # http://www.fileformat.info/info/unicode/category/Nd/list.htm
+ # https://www.fileformat.info/info/unicode/category/Nd/list.htm
private $mLangs = [
'Ar', 'As', 'Bh', 'Bo', 'Dz',
'Fa', 'Gu', 'Hi', 'Km', 'Kn',
$this->output( "OK\n\$digitTransformTable = [\n" );
foreach ( $digitTransformTable as $latin => $translation ) {
- $htmlent = utf8ToHexSequence( $translation );
+ $htmlent = bin2hex( $translation );
$this->output( "'$latin' => '$translation', # &#x$htmlent;\n" );
}
$this->output( "];\n" );
}
}
-$maintClass = "Digit2Html";
+$maintClass = Digit2Html::class;
require_once RUN_MAINTENANCE_IF_MAIN;