From b7a5041e80efbe52d358d49ca2a2e94cbb6aff7f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 Sep 2011 18:53:06 -0400 Subject: [PATCH] better output for updateurls.php (and it runs) --- scripts/updateurls.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/updateurls.php b/scripts/updateurls.php index 737adb3f3f..01b3c2283b 100644 --- a/scripts/updateurls.php +++ b/scripts/updateurls.php @@ -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(); -- 2.39.5