mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
move website settings back to settings/
We don't want the settings to become visible when a server is accidentally configured wrongly.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
@define('CONST_Debug', (isset($_GET['debug']) && $_GET['debug']));
|
@define('CONST_Debug', (isset($_GET['debug']) && $_GET['debug']));
|
||||||
require_once(dirname(dirname(__FILE__)).'/website/settings-frontend.php');
|
require_once(dirname(dirname(__FILE__)).'/settings/settings-frontend.php');
|
||||||
|
|
||||||
require_once(CONST_BasePath.'/@script_source@');
|
require_once(CONST_BasePath.'/@script_source@');
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ class SetupFunctions
|
|||||||
*/
|
*/
|
||||||
public function setupWebsite()
|
public function setupWebsite()
|
||||||
{
|
{
|
||||||
$rOutputFile = fopen(CONST_InstallPath.'/website/settings-frontend.php', 'w');
|
$rOutputFile = fopen(CONST_InstallPath.'/settings/settings-frontend.php', 'w');
|
||||||
|
|
||||||
fwrite($rOutputFile, "<?php
|
fwrite($rOutputFile, "<?php
|
||||||
@define('CONST_BasePath', '".CONST_BasePath."');
|
@define('CONST_BasePath', '".CONST_BasePath."');
|
||||||
|
|||||||
Reference in New Issue
Block a user