comparison mgallery.inc.php @ 278:6770ef8b3575

Disable checking of undefined configuration settings.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 May 2019 17:59:18 +0300
parents bc7bda1d1410
children 8297c895f22e
comparison
equal deleted inserted replaced
277:4080b9bde2ac 278:6770ef8b3575
229 mgDebug("Checking '".$file."' for configuration ..\n"); 229 mgDebug("Checking '".$file."' for configuration ..\n");
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 234 return TRUE;
235 /*
235 // Validate settings 236 // Validate settings
236 $ok = TRUE; 237 $ok = TRUE;
237 foreach ($mgSettings as $setting => $val) 238 foreach ($mgSettings as $setting => $val)
238 { 239 {
239 if (!array_key_exists($setting, $mgDefaults)) 240 if (!array_key_exists($setting, $mgDefaults))
241 mgError("Setting '".$setting."' does not exist.\n"); 242 mgError("Setting '".$setting."' does not exist.\n");
242 $ok = FALSE; 243 $ok = FALSE;
243 } 244 }
244 } 245 }
245 return $ok; 246 return $ok;
247 */
246 } 248 }
247 } 249 }
248 250
249 $mgSettings = []; 251 $mgSettings = [];
250 return FALSE; 252 return FALSE;