From e467b956ffbe32acbec2ae0bf7ef029a66f2ede0 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 13 Jan 2021 17:00:38 +0100 Subject: [PATCH] set CONST_LibDir directly from the source scripts Now that the source scripts have been moved to \lib, they can determine the position of the PHP library relative to themselves. --- cmake/script.tmpl | 3 +-- lib/admin/check_import_finished.php | 2 +- lib/admin/country_languages.php | 1 + lib/admin/export.php | 1 + lib/admin/query.php | 1 + lib/admin/setup.php | 1 + lib/admin/specialphrases.php | 1 + lib/admin/update.php | 1 + lib/admin/warm.php | 1 + 9 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cmake/script.tmpl b/cmake/script.tmpl index 8e72cc08..b0e1f535 100755 --- a/cmake/script.tmpl +++ b/cmake/script.tmpl @@ -3,7 +3,6 @@ @define('CONST_Default_ModulePath', '@CMAKE_BINARY_DIR@/module'); @define('CONST_Default_Osm2pgsql', '@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql'); @define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils'); -@define('CONST_LibDir', '@CMAKE_SOURCE_DIR@/lib'); @define('CONST_DataDir', '@CMAKE_SOURCE_DIR@'); -require_once(CONST_LibDir.'/admin/@script_source@'); +require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@'); diff --git a/lib/admin/check_import_finished.php b/lib/admin/check_import_finished.php index bd5d7a00..f189fc9a 100644 --- a/lib/admin/check_import_finished.php +++ b/lib/admin/check_import_finished.php @@ -1,4 +1,5 @@