Delete master education.
[platal.git] / bin / formatAddresses.php
index d207748..52636ef 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php5 -q
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -86,7 +86,7 @@ EOF;
     exit;
 }
 
-print "Formats addresses addresses.\n";
+print "Formats addresses.\n";
 
 if ($range != 'a') {
     $where = $targets[$target] . $ranges[$range];
@@ -116,7 +116,7 @@ while ($address = $it->next()) {
     $address->changed = ($geocoding_required ? 1 : 0);
     $address->format();
     if ($address->delete()) {
-        $address->save();
+        $address->save(false);
     } else {
         ++$skipped;
     }
@@ -137,5 +137,5 @@ if ($skipped != 0) {
 
 print "\nDone.\n";
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>