Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -153,15 +153,8 @@ |
154 | 154 | } |
155 | 155 | |
156 | 156 | 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>'; |
166 | 159 | return true; |
167 | 160 | } |
168 | 161 | |