comparison mgallery.inc.php @ 280:8297c895f22e

Remove the obsolete code for checking undefined config settings completely.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 May 2019 21:48:24 +0300
parents 6770ef8b3575
children 25324e33fc78
comparison
equal deleted inserted replaced
279:54a54921426c 280:8297c895f22e
230 if (file_exists($file) && 230 if (file_exists($file) &&
231 ($mgSettings = parse_ini_file($file, FALSE)) !== FALSE) 231 ($mgSettings = parse_ini_file($file, FALSE)) !== FALSE)
232 { 232 {
233 mgDebug("Found '".$file."' config.\n"); 233 mgDebug("Found '".$file."' config.\n");
234 return TRUE; 234 return TRUE;
235 /*
236 // Validate settings
237 $ok = TRUE;
238 foreach ($mgSettings as $setting => $val)
239 {
240 if (!array_key_exists($setting, $mgDefaults))
241 {
242 mgError("Setting '".$setting."' does not exist.\n");
243 $ok = FALSE;
244 }
245 }
246 return $ok;
247 */
248 } 235 }
249 } 236 }
250 237
251 $mgSettings = []; 238 $mgSettings = [];
252 return FALSE; 239 return FALSE;