mirror of
https://github.com/Hutchy68/pivot.git
synced 2024-11-21 18:09:03 +01:00
Stylepath for font fix
This commit is contained in:
parent
25db636961
commit
cd535df66e
@ -13,6 +13,7 @@ class SkinPivot extends SkinTemplate {
|
|||||||
|
|
||||||
public function setupSkinUserCss(OutputPage $out) {
|
public function setupSkinUserCss(OutputPage $out) {
|
||||||
parent::setupSkinUserCss($out);
|
parent::setupSkinUserCss($out);
|
||||||
|
global $wgLocalStylePath;
|
||||||
global $wgPivotFeatures;
|
global $wgPivotFeatures;
|
||||||
$wgPivotFeaturesDefaults = array(
|
$wgPivotFeaturesDefaults = array(
|
||||||
'showActionsForAnon' => true,
|
'showActionsForAnon' => true,
|
||||||
@ -38,7 +39,7 @@ class SkinPivot extends SkinTemplate {
|
|||||||
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
|
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0';
|
||||||
$out->addMeta('viewport', $viewport_meta);
|
$out->addMeta('viewport', $viewport_meta);
|
||||||
$out->addModuleScripts('skins.pivot.js');
|
$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" />');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user