r100416 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100415‎ | r100416 | r100417 >
Date:09:49, 21 October 2011
Author:santhosh
Status:ok
Tags:
Comment:
Remove no-op code. Condition has no effect.
Modified paths:
  • /trunk/extensions/WebFonts/WebFonts.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WebFonts/WebFonts.hooks.php
@@ -21,11 +21,6 @@
2222 public static function addVariables( &$vars ) {
2323 global $wgWebFontsEnabledByDefault, $wgUser;
2424
25 - if ( $wgUser->getOption( 'webfontsDisable' ) ) {
26 - // User disabled WebFonts
27 - return true;
28 - }
29 -
3025 if ( $wgUser->isAnon() ) {
3126 // If user enabled webfonts from preference page,
3227 // wgWebFontsEnabledByDefault is overridden by that.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100116have a configuraiton parameter $wgEnableWebFontsDefault , when set false, don...santhosh15:22, 18 October 2011

Status & tagging log