summaryrefslogtreecommitdiff
path: root/extensions/Cite/Cite.php
diff options
context:
space:
mode:
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;
+}
+
/**#@-*/