com web/master: Adding the 'show only last entry' thing. Next step will be to fix the modification screen, which I've been meaning to do for years.:
manage/mirrors.php
| From: | Daniel P. Brown | Date: | Thu, 31 May 2012 20:43:33 +0000 |
| Subject: | com web/master: Adding the 'show only last entry' thing. Next step will be to fix the modification screen, which I've been meaning to do for years.: manage/mirrors.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13610@lists.php.net to get a copy of this message | ||
Commit: b7744c05182e1347e828b20fc5291b18dc052868
Author: Daniel P. Brown <danbrown@php.net> Thu, 31 May 2012 16:43:33 -0400
Parents: 5ca6e3dbb7dfc22439d8f5aa91d0dde904b636de
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=b7744c05182e1347e828b20fc5291b18dc052868
Log:
Adding the 'show only last entry' thing. Next step will be to fix the modification
screen, which I've been meaning to do for years.
Changed paths:
M manage/mirrors.php
Diff:
diff --git a/manage/mirrors.php b/manage/mirrors.php
index d29add5..904f905 100644
--- a/manage/mirrors.php
+++ b/manage/mirrors.php
@@ -427,8 +427,13 @@ function page_mirror_list($moreinfo = false)
// If any info on the error of this mirror is available, print it out
if ($errorinfo) {
$summary .= "<tr class=\"mirrorerror\"><td
bgcolor=\"#ffffff\"></td>" .
- "<td colspan=\"7\" class=\"rounded\"><img
src=\"/images/mirror_info.png\" /> " .
- nl2br($errorinfo) . "</td></tr>";
+ "<td colspan=\"7\" class=\"rounded\"><img
src=\"/images/mirror_info.png\" /> ";
+ if (($errorblock = preg_split('/==\r?\n/',$errorinfo)) != 0) {
+ $summary .= nl2br($errorblock[(count($errorblock)-1)]);
+ } else {
+ $summary .= nl2br($errorinfo);
+ }
+ $summary .= '</td></tr>';
}
// If additional details are desired
if ($moreinfo) {