]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better output for updateurls.php (and it runs)
authorEvan Prodromou <evan@status.net>
Wed, 7 Sep 2011 22:53:06 +0000 (18:53 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 7 Sep 2011 22:53:06 +0000 (18:53 -0400)
scripts/updateurls.php

index 737adb3f3f91d46bd00aa189b5415d5fbe479921..01b3c2283bdbe371ca37b6d4d5aa049d1af60578 100644 (file)
@@ -104,11 +104,14 @@ function updateAvatarUrls($profile)
 
 function updateGroupUrls()
 {
+    printfnq("Updating group URLs...\n");
+
     $group = new User_group();
 
     if ($group->find()) {
         while ($group->fetch()) {
             try {
+                printfv("Updating group {$group->nickname}...");
                 $orig = User_group::staticGet('id', $group->id);
                 if (!empty($group->original_logo)) {
                     $group->original_logo = Avatar::url(basename($group->original_logo));
@@ -124,9 +127,12 @@ function updateGroupUrls()
                                                         array('nickname' => $group->nickname));
                 }
                 $group->update($orig);
+                printfv("DONE.");
             } catch (Exception $e) {
                 printv("Can't update avatars for group " . $group->nickname . ": ". $e->getMessage());
             }
         }
     }
 }
+
+main();