r80480 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80479‎ | r80480 | r80481 >
Date:00:13, 18 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Remove compat dir
Modified paths:
  • /branches/Maps0.8/Maps.php (modified) (history)
  • /branches/Maps0.8/compat (deleted) (history)

Diff [purge]

Index: branches/Maps0.8/Maps.php
@@ -116,15 +116,8 @@
117117 $wgAutoloadClasses['MapsGeocode'] = $phDir . 'Maps_Geocode.php';
118118 $wgAutoloadClasses['MapsGeodistance'] = $phDir . 'Maps_Geodistance.php';
119119
120 - // To ensure Maps remains compatible with pre 1.16.
121 - if ( !class_exists( 'Html' ) ) {
122 - $wgAutoloadClasses['Html'] = $egMapsDir . 'compat/Html.php';
123 - }
 120+ $wgExtensionMessagesFiles['MapsMagic'] = $egMapsDir . 'Maps.i18n.magic.php';
124121
125 - if ( version_compare( $wgVersion, '1.16alpha', '>=' ) ) {
126 - $wgExtensionMessagesFiles['MapsMagic'] = $egMapsDir . 'Maps.i18n.magic.php';
127 - }
128 -
129122 $wgExtensionMessagesFiles['Maps'] = $egMapsDir . 'Maps.i18n.php';
130123
131124 // Register the initialization function of Maps.
@@ -164,12 +157,6 @@
165158 function efMapsSetup() {
166159 global $wgExtensionCredits, $wgLang, $wgExtraNamespaces, $wgNamespaceAliases, $wgVersion;
167160
168 - // This function has been deprecated in 1.16, but needed for earlier versions.
169 - // It's present in 1.16 as a stub, but lets check if it exists in case it gets removed at some point.
170 - if ( version_compare( $wgVersion, '1.15', '<=' ) ) {
171 - wfLoadExtensionMessages( 'Maps' );
172 - }
173 -
174161 if ( is_null( $wgExtraNamespaces ) ) {
175162 $wgExtraNamespaces = array();
176163 }

Status & tagging log