From: Sarah Hoffmann Date: Mon, 8 Feb 2021 11:00:34 +0000 (+0100) Subject: move website into php library directory X-Git-Tag: v3.7.0~38^2~20 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/a759c5b75b66894b1902327097185840a2557f86 move website into php library directory --- diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 4e9daaf8..2a498287 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -754,8 +754,7 @@ class SetupFunctions fwriteConstDef($rFile, 'Use_US_Tiger_Data', getSettingBool('USE_US_TIGER_DATA')); fwriteConstDef($rFile, 'MapIcon_URL', getSetting('MAPICON_URL')); - // XXX scripts should go into the library. - fwrite($rFile, 'require_once(\''.CONST_DataDir.'/website/'.$sScript."');\n"); + fwrite($rFile, 'require_once(\''.CONST_LibDir.'/website/'.$sScript."');\n"); fclose($rFile); chmod(CONST_InstallDir.'/website/'.$sScript, 0755); diff --git a/website/deletable.php b/lib/website/deletable.php similarity index 100% rename from website/deletable.php rename to lib/website/deletable.php diff --git a/website/details.php b/lib/website/details.php similarity index 100% rename from website/details.php rename to lib/website/details.php diff --git a/website/lookup.php b/lib/website/lookup.php similarity index 100% rename from website/lookup.php rename to lib/website/lookup.php diff --git a/website/polygons.php b/lib/website/polygons.php similarity index 100% rename from website/polygons.php rename to lib/website/polygons.php diff --git a/website/reverse.php b/lib/website/reverse.php similarity index 100% rename from website/reverse.php rename to lib/website/reverse.php diff --git a/website/search.php b/lib/website/search.php similarity index 100% rename from website/search.php rename to lib/website/search.php diff --git a/website/status.php b/lib/website/status.php similarity index 100% rename from website/status.php rename to lib/website/status.php