summaryrefslogtreecommitdiff
path: root/extensions/Cite/Cite.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-03-12 18:12:23 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-03-12 18:12:23 +0100
commitd417de70fcf39e0a7a15ba780b597914d16ca0f7 (patch)
tree06ef8c333473660350b995abc03e18f3f85359eb /extensions/Cite/Cite.php
parenta4edbfa031eb4cd72678051f1510afde4f77951e (diff)
Update to MediaWiki 1.22.4
Diffstat (limited to 'extensions/Cite/Cite.php')
-rw-r--r--extensions/Cite/Cite.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/extensions/Cite/Cite.php b/extensions/Cite/Cite.php
index 045bb8cc..4b2f70ff 100644
--- a/extensions/Cite/Cite.php
+++ b/extensions/Cite/Cite.php
@@ -18,6 +18,8 @@ if ( ! defined( 'MEDIAWIKI' ) )
*/
$wgHooks['ParserFirstCallInit'][] = 'wfCite';
+$wgHooks['BeforePageDisplay'][] = 'wfCiteBeforePageDisplay';
+
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
@@ -96,4 +98,22 @@ $wgResourceModules['ext.rtlcite'] = $citeResourceTemplate + array(
'position' => 'top',
);
+/**
+ * @param $out OutputPage
+ * @param $sk Skin
+ * @return bool
+ */
+function wfCiteBeforePageDisplay( $out, &$sk ) {
+ global $wgCiteEnablePopups;
+
+ $out->addModules( 'ext.cite' );
+ if ( $wgCiteEnablePopups ) {
+ $out->addModules( 'ext.cite.popups' );
+ }
+
+ /* RTL support quick-fix module */
+ $out->addModuleStyles( 'ext.rtlcite' );
+ return true;
+}
+
/**#@-*/