r51313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51312‎ | r51313 | r51314 >
Date:21:37, 1 June 2009
Author:kim
Status:deferred
Tags:
Comment:
Check $additional_settings before using it
Modified paths:
  • /trunk/testing/installer/LocalSettings.php (modified) (history)

Diff [purge]

Index: trunk/testing/installer/LocalSettings.php
@@ -130,9 +130,10 @@
131131 # load Localsettings specific to particular modules
132132
133133 $additional_settings=glob("$IP/LocalSettings/*.php");
134 -foreach ($additional_settings as $file) {
135 - require_once($file);
 134+if ($additional_settings) {
 135+ foreach ($additional_settings as $file) {
 136+ require_once($file);
 137+ }
136138 }
137139
138 -
139140 ?>

Status & tagging log