comparison mgallery.php @ 297:77f85b1f35f2

Improve configuration file handling.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 02 Aug 2019 12:54:51 +0300
parents f14ed58ef72b
children f8d812d3194f
comparison
equal deleted inserted replaced
296:f14ed58ef72b 297:77f85b1f35f2
445 445
446 446
447 // 447 //
448 // Read and process gallery settings 448 // Read and process gallery settings
449 // 449 //
450 mgReadSettings(); 450 if (mgReadSettings($searchPaths) === FALSE)
451 {
452 mgPrintPageHeader("Internal error!", "galleryPage");
453
454 echo
455 "<h1>Internal error!</h1>\n".
456 "<p>Could not find MGallery configuration file.</p>";
457
458 mgPrintPageFooter();
459 exit;
460 }
451 461
452 $pageCSS = mgGetSetting("css"); 462 $pageCSS = mgGetSetting("css");
453 $pageJSFile = mgGetSetting("js_file"); 463 $pageJSFile = mgGetSetting("js_file");
454 $pageUrchin = mgGetSetting("urchin_file"); 464 $pageUrchin = mgGetSetting("urchin_file");
455 $galBasePath = mgGetSetting("base_path"); 465 $galBasePath = mgGetSetting("base_path");