Mercurial > hg > mgallery
diff mgtool.php @ 297:77f85b1f35f2
Improve configuration file handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 02 Aug 2019 12:54:51 +0300 |
parents | 486398fb60ea |
children | 338bc2941976 |
line wrap: on
line diff
--- a/mgtool.php Fri Aug 02 09:26:12 2019 +0300 +++ b/mgtool.php Fri Aug 02 12:54:51 2019 +0300 @@ -1246,8 +1246,11 @@ } // Check settings -if (mgReadSettings() === FALSE) - die("MGallery is not configured, failed to find a configuration file.\n"); +if (mgReadSettings($searchPaths) === FALSE) +{ + die("MGallery is not configured, failed to find a configuration file.\n". + "Attempted search paths:\n".implode("\n", $searchPaths)."\n"); +} // Configure the timezone if (($pageTimeZone = mgGetSetting("timezone")) !== NULL)