Fix broken webfonts build scripts

In f9532855ad classes were
namespaced that broke the maintenance scripts referring them.

Follow up: f9532855ad
Change-Id: I2b9658ed06cd75c25789bad8bb867e39eba6afcd
This commit is contained in:
Santhosh Thottingal
2022-01-10 11:16:37 +05:30
parent d2b84d7910
commit 75daa0a926
2 changed files with 16 additions and 2 deletions

View File

@@ -6,6 +6,11 @@
* @file
*/
namespace UniversalLanguageSelector;
use FormatJson;
use Maintenance;
// Standard boilerplate to define $IP
if ( getenv( 'MW_INSTALL_PATH' ) !== false ) {
$IP = getenv( 'MW_INSTALL_PATH' );
@@ -46,5 +51,5 @@ JAVASCRIPT;
}
}
$maintClass = 'CompileFontRepo';
$maintClass = 'UniversalLanguageSelector\CompileFontRepo';
require_once RUN_MAINTENANCE_IF_MAIN;

View File

@@ -6,6 +6,12 @@
* @file
*/
namespace UniversalLanguageSelector;
use FormatJson;
use Html;
use Maintenance;
// Standard boilerplate to define $IP
if ( getenv( 'MW_INSTALL_PATH' ) !== false ) {
$IP = getenv( 'MW_INSTALL_PATH' );
@@ -35,6 +41,9 @@ class GenerateFontTestPage extends Maintenance {
$body = '';
foreach ( $list['languages'] as $code => $fonts ) {
if ( !isset( $corpus[$code] ) ) {
continue;
}
foreach ( $fonts as $fontname ) {
if ( $fontname === 'system' ) {
continue;
@@ -93,5 +102,5 @@ HTML;
}
}
$maintClass = 'GenerateFontTestPage';
$maintClass = 'UniversalLanguageSelector\GenerateFontTestPage';
require_once RUN_MAINTENANCE_IF_MAIN;