Fixed generated urls sometimes interfering with rewrite rules

This commit is contained in:
Frank Schubert
2022-10-20 14:53:32 +02:00
parent 2f1f64752a
commit 56dab61941
3 changed files with 4 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ class mfBaseController {
}
}
if(is_array($param) && count($param)) {
$url .= (MFUSEFANCYURLS) ? "/" : "&";
$url .= (MFUSEFANCYURLS) ? "/?" : "&";
$param_qs = http_build_query($param);
$url .= "$param_qs";
}

View File

@@ -207,7 +207,7 @@ class mfLayout {
}
}
if (is_array($param) && count($param)) {
$url .= (MFUSEFANCYURLS) ? "/" : "&";
$url .= (MFUSEFANCYURLS) ? "/?" : "&";
$param_qs = http_build_query($param);
$url .= "$param_qs";
}

View File

@@ -13,6 +13,8 @@ require_once(LIBDIR."/mvcfronk/mfBase/mfBaseController.php");
$me = new User(1);
$gemeinden_cache = [];
$folder = BASEDIR."/scripts/addressdb/import/bev";
$db = FronkDB::singleton(ADDRESSDB_DBHOST, ADDRESSDB_DBUSER, ADDRESSDB_DBPASS, ADDRESSDB_DBNAME);
$log = mfLoghandler::singleton();
@@ -223,7 +225,6 @@ while($csv = fgetcsv($input, 0, ";")) {
echo "\n".($i-1)." Straßen importiert\n";
$gemeinden_cache = [];
function getGemeinde($kz) {
global $gemeinden_cache;