r96962 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96961‎ | r96962 | r96963 >
Date:13:36, 13 September 2011
Author:siebrand
Status:ok
Tags:
Comment:
Remove 1.15 and below compatibility.
Modified paths:
  • /trunk/extensions/Translate/scripts/magic-export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/magic-export.php
@@ -1,5 +1,4 @@
22 <?php
3 -
43 /**
54 * Script to export special page aliases and magic words of extensions.
65 *
@@ -257,24 +256,10 @@
258257 }
259258
260259 /**
261 - * For special page aliases we set $aliases as a reference to
262 - * the more modern $specialPageAliases for backwards compatibility.
 260+ * Do whatever needs doing after writing the primary content.
263261 */
264262 protected function writeFooters() {
265263 $this->output( "Writing file footers...\n" );
266 - if ( $this->type === 'special' ) {
267 - foreach ( $this->handles as $handle ) {
268 - fwrite( $handle, <<<PHP
269 -
270 -
271 -/**
272 - * For backwards compatibility with MediaWiki 1.15 and earlier.
273 - */
274 -\$aliases =& \$specialPageAliases;
275 -PHP
276 - );
277 - }
278 - }
279264 }
280265
281266 /**

Status & tagging log