]> git.openstreetmap.org Git - nominatim.git/commitdiff
create_sql_functions() needs the commandline parameters
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 23 Apr 2016 09:07:12 +0000 (11:07 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 23 Apr 2016 09:07:12 +0000 (11:07 +0200)
Fixes one failing test.

utils/setup.php

index 4a2bc64ff3a8e7d3919f9fbb62452ee4b3894b05..5a6366e70ccfbd5de3cfa8cf763ba7ac7fccf813 100755 (executable)
                echo "Functions\n";
                $bDidSomething = true;
                if (!file_exists(CONST_InstallPath.'/module/nominatim.so')) fail("nominatim module not built");
-               create_sql_functions();
+               create_sql_functions($aCMDResult);
        }
 
        if ($aCMDResult['create-tables'] || $aCMDResult['all'])
 
                // re-run the functions
                echo "Functions\n";
-               create_sql_functions();
+               create_sql_functions($aCMDResult);
        }
 
        if ($aCMDResult['create-partition-tables'] || $aCMDResult['all'])
                return $sSql;
        }
 
-       function create_sql_functions()
+       function create_sql_functions($aCMDResult)
        {
                $sTemplate = file_get_contents(CONST_BasePath.'/sql/functions.sql');
                $sTemplate = str_replace('{modulepath}', CONST_InstallPath.'/module', $sTemplate);