r74272 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74271‎ | r74272 | r74273 >
Date:20:42, 4 October 2010
Author:kaldari
Status:ok
Tags:
Comment:
switching back to always-on geo lookup now that it is at the bottom of the page
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -153,15 +153,8 @@
154154 }
155155
156156 function efCentralNoticeGeoLoader( $skin, &$text ) {
157 - global $wgCentralDBname;
158 - if ( $wgCentralDBname ) {
159 - $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
160 - $row = $dbr->selectRow( 'cn_notices', 'not_name', array( 'not_enabled = 1', 'not_geo = 1' ) );
161 - if ( $row ) {
162 - // Insert the geo IP lookup
163 - $text .= '<script type="text/javascript" src="http://geoiplookup.wikimedia.org/"></script>';
164 - }
165 - }
 157+ // Insert the geo IP lookup
 158+ $text .= '<script type="text/javascript" src="http://geoiplookup.wikimedia.org/"></script>';
166159 return true;
167160 }
168161

Status & tagging log