cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Sat, 02 Aug 2003 16:27:32 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19748@lists.php.net to get a copy of this message | ||
goba Sat Aug 2 12:27:32 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
Show the last automatic error message for deactivated mirrors,
if available (for mirrors deactivated because of a manual alias)
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.65 php-master-web/manage/mirrors.php:1.66
--- php-master-web/manage/mirrors.php:1.65 Sat Aug 2 06:21:51 2003
+++ php-master-web/manage/mirrors.php Sat Aug 2 12:27:32 2003
@@ -325,7 +325,6 @@
// Not up to date or not current
if (!$row['up'] || !$row['current']) {
$siteimage = "error";
- $row['ocmt'] = trim($row['ocmt']);
if (!empty($row['ocmt'])) {
$errorinfo = $row['ocmt'] . " (last accessed: " .
get_print_date($row['ulastchecked']) . ")";
@@ -340,13 +339,13 @@
}
}
}
- // Not active mirror site
+ // Not active mirror site (maybe deactivated by the
+ // mirror check bot, because of a /manual alias,
+ // or deactivated by some admin)
else {
$siteimage = "deactivated";
- $row['acmt'] = trim($row['acmt']);
- if (!empty($row['acmt'])) {
- $errorinfo = $row['acmt'];
- }
+ if (!empty($row['ocmt'])) { $errorinfo = $row['ocmt']; }
+ elseif (!empty($row['acmt'])) { $errorinfo = $row['acmt']; }
}
// See what needs to print out as search info