]> git.openstreetmap.org Git - nominatim.git/commitdiff
move website into php library directory
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 8 Feb 2021 11:00:34 +0000 (12:00 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 8 Feb 2021 11:00:34 +0000 (12:00 +0100)
lib/setup/SetupClass.php
lib/website/deletable.php [moved from website/deletable.php with 100% similarity]
lib/website/details.php [moved from website/details.php with 100% similarity]
lib/website/lookup.php [moved from website/lookup.php with 100% similarity]
lib/website/polygons.php [moved from website/polygons.php with 100% similarity]
lib/website/reverse.php [moved from website/reverse.php with 100% similarity]
lib/website/search.php [moved from website/search.php with 100% similarity]
lib/website/status.php [moved from website/status.php with 100% similarity]

index 4e9daaf8dda9a8c4e1d667b773bae0b8e6fde0c4..2a49828733a2ff97c897b97dbe85deb724be3b5f 100755 (executable)
@@ -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);
similarity index 100%
rename from website/details.php
rename to lib/website/details.php
similarity index 100%
rename from website/lookup.php
rename to lib/website/lookup.php
similarity index 100%
rename from website/reverse.php
rename to lib/website/reverse.php
similarity index 100%
rename from website/search.php
rename to lib/website/search.php
similarity index 100%
rename from website/status.php
rename to lib/website/status.php