Fix broken webfonts build scripts
Inf9532855adclasses were namespaced that broke the maintenance scripts referring them. Follow up:f9532855adChange-Id: I2b9658ed06cd75c25789bad8bb867e39eba6afcd
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user