r110823 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110822‎ | r110823 | r110824 >
Date:07:04, 7 February 2012
Author:maxsem
Status:ok
Tags:miscextensions 
Comment:
Follow-up r102160: disable popups by default
Modified paths:
  • /trunk/extensions/Cite/Cite.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/Cite.php
@@ -47,6 +47,11 @@
4848 $wgCiteCacheReferences = false;
4949
5050 /**
 51+ * Enables experimental popups
 52+ */
 53+$wgCiteEnablePopups = false;
 54+
 55+/**
5156 * Performs the hook registration.
5257 * Note that several extensions (and even core!) try to detect if Cite is
5358 * installed by looking for wfCite().
@@ -86,8 +91,12 @@
8792 * @return bool
8893 */
8994 function wfCiteBeforePageDisplay( $out, &$sk ) {
90 - $out->addModules( 'ext.cite' );
 95+ global $wgCiteEnablePopups;
9196
 97+ if ( $wgCiteEnablePopups ) {
 98+ $out->addModules( 'ext.cite' );
 99+ }
 100+
92101 return true;
93102 }
94103

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102160Merging ReferenceTooltips into Cite step 2: rename/registermaxsem08:02, 6 November 2011

Status & tagging log