r82023 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82022‎ | r82023 | r82024 >
Date:19:08, 12 February 2011
Author:nikerabbit
Status:resolved (Comments)
Tags:
Comment:
Error tracking
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -283,6 +283,9 @@
284284 public static function parseHeaderTags( $headers ) {
285285 $tags = array();
286286 foreach ( explode( "\n", $headers ) as $line ) {
 287+ if ( strpos( $header, ':' ) === false ) {
 288+ error_log( __METHOD__ . ": $line" );
 289+ }
287290 list( $key, $value ) = explode( ': ', $line, 2 );
288291 $tags[$key] = $value;
289292 }

Comments

#Comment by Raymond (talk | contribs)   20:44, 12 February 2011

PHP Notice: Undefined variable: header in /www/w/extensions/Translate/ffs/Gettext.php on line 286

Status & tagging log