r66790 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66789‎ | r66790 | r66791 >
Date:13:21, 23 May 2010
Author:siebrand
Status:deferred
Tags:
Comment:
(bug 21769) Fix Undefined index: HEADERS in no source file exists.
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -95,7 +95,7 @@
9696 $label = $this->group->getLabel();
9797 $languageName = TranslateUtils::getLanguageName( $code );
9898
99 - $headers = $this->owndata['HEADERS'];
 99+ $headers = isset( $this->owndata['HEADERS'] ) ? $this->owndata['HEADERS'] : array();
100100 $headers['Project-Id-Version'] = $label;
101101 // TODO: make this customisable or something
102102 // $headers['Report-Msgid-Bugs-To'] = $wgServer;

Status & tagging log