Skip to content

Commit

Permalink
Update LocalWiki.php (#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
R4356th committed Apr 17, 2021
1 parent ee403ba commit c809b6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LocalWiki.php
Expand Up @@ -252,6 +252,15 @@ function onSkinBuildSidebar( $skin, &$bar ) {
}
}

if ( $wgDBname === 'pokemundowiki') {
$wgHooks['BeforePageDisplay'][] = 'loadFonts';

function loadFonts ( OutputPage $out ) {
$out->addLink( ['rel' => 'preconnect', 'href' => 'https://fonts.gstatic.com'] );
$out->addLink( ['rel' => 'stylesheet', 'href' => 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'] );
}
}

if ( $wgDBname === 'newusopediawiki' ) {
$wgFilterLogTypes['comments'] = false;
}
Expand Down

0 comments on commit c809b6d

Please sign in to comment.