X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a0dbeabed1a18e9bedb6cb2a6eed4c2b5fbf45cc..f45b3fa3f243de8894c03d8c9377157d01092c8c:/lib/setup/SetupClass.php?ds=inline diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index f31c2353..fbcf9b5c 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -16,7 +16,7 @@ class SetupFunctions protected $oDB = null; // set in setupDB (earliest) or later in loadData, importData, drop, createSqlFunctions, importTigerData // pgsqlRunPartitionScript, calculatePostcodes, ..if no already set - public function __construct($aCMDResult, $callingFunction = 'setup') + public function __construct($callingFunction, array $aCMDResult = array()) { // by default, use all but one processor, but never more than 15. $this->iInstances = isset($aCMDResult['threads']) @@ -64,7 +64,7 @@ class SetupFunctions } // if class is instantiated by update.php, we have to set EnableDiffUpdates to true - // otherwise set to value provided comand line to setup.php + // otherwise set to value provided by setup.php's command line arg array if ($callingFunction == 'update') { $this->bEnableDiffUpdates = true; } elseif ($callingFunction == 'setup') {