mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 08:10:45 +00:00
Attempt to fix styles not loading properly
This commit is contained in:
parent
0256020d9e
commit
43ab95b516
|
@ -21,7 +21,7 @@ class SkinCitizen extends SkinTemplate {
|
|||
* @param OutputPage $out
|
||||
*/
|
||||
public function initPage( OutputPage $out ) {
|
||||
$this->out = $out;
|
||||
parent::initPage( $out );
|
||||
|
||||
// Responsive layout
|
||||
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' );
|
||||
|
@ -205,8 +205,9 @@ class SkinCitizen extends SkinTemplate {
|
|||
*/
|
||||
public function getDefaultModules() {
|
||||
$modules = parent::getDefaultModules();
|
||||
|
||||
// Add Citizen skin styles
|
||||
$modules['styles']['core'] = $this->getSkinStyles();
|
||||
$modules['styles']['skin'] = $this->getSkinStyles();
|
||||
// Replace search module with a custom one
|
||||
$modules['search'] = 'skins.citizen.search.scripts';
|
||||
|
||||
|
@ -222,7 +223,7 @@ class SkinCitizen extends SkinTemplate {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getSkinStyles(): array {
|
||||
protected function getSkinStyles(): array {
|
||||
$styles = [
|
||||
'mediawiki.skinning.content.externallinks',
|
||||
'skins.citizen.styles',
|
||||
|
|
Loading…
Reference in a new issue