r96348 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96347‎ | r96348 | r96349 >
Date:16:24, 6 September 2011
Author:roberthl
Status:ok
Tags:
Comment:
Translate: If magic-export.php does not find a header, output a basic header rather than exitting.
Modified paths:
  • /trunk/extensions/Translate/scripts/magic-export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/magic-export.php
@@ -123,7 +123,7 @@
124124 $end = strpos( $data, '*/' ) + 2;
125125
126126 if ( $end === false ) {
127 - die( "No header found in '$file'.\n" );
 127+ return "<?php\n";
128128 }
129129
130130 // Grab header.

Status & tagging log