Merge "Fix sessionfailure i18n message during authentication"
[lhc/web/wiklou.git] / maintenance / language / digit2html.php
index 5bdc8a7..f1e74ad 100644 (file)
@@ -31,7 +31,7 @@ require_once __DIR__ . '/../Maintenance.php';
 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',
@@ -57,7 +57,7 @@ class Digit2Html extends Maintenance {
 
                        $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" );
@@ -65,5 +65,5 @@ class Digit2Html extends Maintenance {
        }
 }
 
-$maintClass = "Digit2Html";
+$maintClass = Digit2Html::class;
 require_once RUN_MAINTENANCE_IF_MAIN;