summaryrefslogtreecommitdiff
path: root/skins/Vector/SkinVector.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:32:59 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:32:59 -0400
commit6dc1997577fab2c366781fd7048144935afa0012 (patch)
tree8918d28c7ab4342f0738985e37af1dfc42d0e93a /skins/Vector/SkinVector.php
parent150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff)
parentfa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff)
Merge commit 'fa89acd'
# Conflicts: # .gitignore # extensions/ArchInterWiki.sql
Diffstat (limited to 'skins/Vector/SkinVector.php')
-rw-r--r--skins/Vector/SkinVector.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/skins/Vector/SkinVector.php b/skins/Vector/SkinVector.php
index f5e3634c..5d14628a 100644
--- a/skins/Vector/SkinVector.php
+++ b/skins/Vector/SkinVector.php
@@ -46,6 +46,11 @@ class SkinVector extends SkinTemplate {
public function initPage( OutputPage $out ) {
parent::initPage( $out );
+ if ( $this->vectorConfig->get( 'VectorResponsive' ) ) {
+ $out->addMeta( 'viewport', 'width=device-width, initial-scale=1' );
+ $out->addModuleStyles( 'skins.vector.styles.responsive' );
+ }
+
// Append CSS which includes IE only behavior fixes for hover support -
// this is better than including this in a CSS file since it doesn't
// wait for the CSS file to load before fetching the HTC file.
@@ -67,7 +72,7 @@ class SkinVector extends SkinTemplate {
parent::setupSkinUserCss( $out );
$styles = array( 'mediawiki.skinning.interface', 'skins.vector.styles' );
- wfRunHooks( 'SkinVectorStyleModules', array( $this, &$styles ) );
+ Hooks::run( 'SkinVectorStyleModules', array( $this, &$styles ) );
$out->addModuleStyles( $styles );
}