- a couple of small improvements

3-00
Dries Buytaert 2001-03-08 17:58:52 +00:00
parent fc6eaa5e83
commit 216714b7b6
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ class backend {
$this->timestamp = time();
}
else {
watchdog("error", "failed to retrieve headline data from $url[host]: <PRE>$data</PRE>");
watchdog("error", "failed to retrieve headline data from '$this->site': <PRE>$data</PRE>");
}
}
}

View File

@ -113,8 +113,8 @@ function headline_admin_display() {
$backend = new backend($channel->id);
$output .= "<TR>\n";
$output .= " <TD><A HREF=\"$backend->url\">$backend->site</A></TD>\n";
$output .= " <TD><A HREF=\"mailto:$backend->contact\">$backend->contact</A></TD>\n";
$output .= " <TD>". format_url($backend->url, $backend->site) ."</TD>\n";
$output .= " <TD>". format_email($backend->contact) ."</TD>\n";
$output .= " <TD ALIGN=\"center\">". ($backend->timestamp == 1 ? "failed" : format_interval(time() - $backend->timestamp) ." ago") ."</TD>\n";
$output .= " <TD ALIGN=\"center\"><A HREF=\"admin.php?mod=headline&op=refresh&id=$backend->id\">refresh</A></TD>\n";
$output .= " <TD ALIGN=\"center\"><A HREF=\"admin.php?mod=headline&op=delete&id=$backend->id\">delete</A></TD>\n";