]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/admin/update.php
convert functon creation to python
[nominatim.git] / lib / admin / update.php
index 972a6fe5ac0d7a4ee3d266a1dee12c8f0a8078d9..a0fbbc460e856fedb37b85d5f365db4a26ea5f25 100644 (file)
@@ -143,12 +143,7 @@ if ($aResult['init-updates']) {
     }
 
     if (!$aResult['no-update-functions']) {
-        // instantiate setupClass to use the function therein
-        $cSetup = new SetupFunctions(array(
-                                      'enable-diff-updates' => true,
-                                      'verbose' => $aResult['verbose']
-                                     ));
-        $cSetup->createFunctions();
+        (clone($oNominatimCmd))->addParams('refresh', '--functions')->run();
     }
 
     $sDatabaseDate = getDatabaseDate($oDB);