You are here

function location_upgrade in Location 5

1 call to location_upgrade()
location_upgrade_page in ./location_upgrade.php

File

./location_upgrade.php, line 104

Code

function location_upgrade($update_n) {
  global $base_url, $sql_updates;
  $update_keys = array_keys($sql_updates);
  $number = $update_n;
  while (in_array($number, $update_keys)) {
    print "PERFORMING UPDATE: <br/>\n";
    print '<pre>  ' . $sql_updates[$number] . "</pre><br/>\n<br/>\n";
    $function = 'location_update_' . $number;
    $function();
    $number++;
  }
}