diff options
-rw-r--r-- | modules/backend.class | 2 | ||||
-rw-r--r-- | modules/headline.module | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/backend.class b/modules/backend.class index 679c149a6..03f4a5c0d 100644 --- a/modules/backend.class +++ b/modules/backend.class @@ -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>"); } } } diff --git a/modules/headline.module b/modules/headline.module index 4ab0668e7..da9f71e45 100644 --- a/modules/headline.module +++ b/modules/headline.module @@ -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"; |