1
0
mirror of https://github.com/Hutchy68/pivot.git synced 2024-11-21 09:59:04 +01:00

Stylepath for font fix

This commit is contained in:
MW install maintain even with core development 2018-02-08 15:27:01 -05:00
parent 25db636961
commit cd535df66e

View File

@ -13,6 +13,7 @@ class SkinPivot extends SkinTemplate {
public function setupSkinUserCss(OutputPage $out) {
parent::setupSkinUserCss($out);
global $wgLocalStylePath;
global $wgPivotFeatures;
$wgPivotFeaturesDefaults = array(
'showActionsForAnon' => true,
@ -38,7 +39,7 @@ class SkinPivot extends SkinTemplate {
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
$out->addMeta('viewport', $viewport_meta);
$out->addModuleScripts('skins.pivot.js');
$out->addHeadItem('font', '<link rel="preload" href="/w/skins/pivot/assets/fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin="anonymous" />');
$out->addHeadItem('font', '<link rel="preload" href="'.$wgLocalStylePath.'/pivot/assets/fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin="anonymous" />');
}