summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2014-12-28 13:13:34 +0100
committerAlex Legler <alex@a3li.li>2014-12-28 13:13:34 +0100
commit227868b1f61f0e1dd5bf3df3637f5c3461f7ce65 (patch)
tree99305b2033a5ba507e7047612b08663c969d7bee
parentLink menu pages to make some special friends happy (diff)
downloadskin-tyrian-227868b1f61f0e1dd5bf3df3637f5c3461f7ce65.tar.gz
skin-tyrian-227868b1f61f0e1dd5bf3df3637f5c3461f7ce65.tar.bz2
skin-tyrian-227868b1f61f0e1dd5bf3df3637f5c3461f7ce65.zip
Add viewport
-rw-r--r--Tyrian.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tyrian.php b/Tyrian.php
index a168dd5..b8285c7 100644
--- a/Tyrian.php
+++ b/Tyrian.php
@@ -50,3 +50,10 @@ $wgResourceModules['skins.tyrian.styles'] = array(
'remoteSkinPath' => 'Tyrian',
'localBasePath' => __DIR__,
);
+
+$wgHooks['OutputPageBeforeHTML'][] = 'injectMetaTags';
+
+function injectMetaTags( $out ) {
+ $out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' );
+ return true;
+}