com web/bugs: Tweak the message part of quick fix responses to look a tiny bit nicer: include/functions.php www/admin/index.php www/css/style.css
| From: | Kalle Sommer Nielsen | Date: | Thu, 24 Aug 2017 15:13:21 +0000 |
| Subject: | com web/bugs: Tweak the message part of quick fix responses to look a tiny bit nicer: include/functions.php www/admin/index.php www/css/style.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26344@lists.php.net to get a copy of this message | ||
Commit: e2f7998bedeae18773936076b1d3f0caa990772b
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 24 Aug 2017 17:13:21 +0200
Parents: d19801e5ae9da552e26a1e0a181e67cca59ca9db
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=e2f7998bedeae18773936076b1d3f0caa990772b
Log:
Tweak the message part of quick fix responses to look a tiny bit nicer
Changed paths:
M include/functions.php
M www/admin/index.php
M www/css/style.css
Diff:
diff --git a/include/functions.php b/include/functions.php
index 4ffe195..2954d8c 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2026,8 +2026,8 @@ function admin_table_dynamic(array $rows)
echo "<tr>\n";
- foreach ($row as $value) {
- echo "<td class=\"bug_bg" . (int) !(!$i || !($i % 2)) .
"\">$value</td>\n";
+ foreach ($row as $column => $value) {
+ echo "<td class=\"bug_bg" . (int) !(!$i || !($i % 2)) . "
tbl-row-$column\">$value</td>\n";
++$i;
}
diff --git a/www/admin/index.php b/www/admin/index.php
index e797624..efb9b0c 100644
--- a/www/admin/index.php
+++ b/www/admin/index.php
@@ -70,7 +70,7 @@ if ($action === 'phpinfo') {
$rows = array();
while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
// This is ugly but works (tm)
- $row['message'] = '<pre>' . $row['message'] .
'</pre>';
+ $row['message'] = nl2br($row['message']);
$rows[] = $row;
}
diff --git a/www/css/style.css b/www/css/style.css
index b4cba6e...ccd0521 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -822,3 +822,9 @@ td.search-next {
}
/* }}} */
+
+/* === Admin === */
+
+td.tbl-row-message {
+ text-align: left;
+}