Commit e5ad13e3 authored by Steven Wittens's avatar Steven Wittens

- #27635: Style update.php

parent ab8377f0
......@@ -15,6 +15,7 @@ Drupal x.x.x, xxxx-xx-xx (development version)
* added support for collapsible page sections.
* reorganized some settings pages.
* added friendly database error screens.
* improved styling of update.php.
- profiles:
* added a block to display author information along with posts.
* added support for private profile fields.
......
......@@ -2522,10 +2522,10 @@ function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);
if ($result) {
return array('1', nl2br(htmlentities($sql)) ." ", "<div style=\"color: green;\">OK</div>\n");
return array('1', check_plain($sql) ."\n<span class=\"success\">OK</span>\n");
}
else {
return array('0', nl2br(htmlentities($sql)) ." ", "<div style=\"color: red;\">FAILED</div>\n");
return array('0', check_plain($sql) ."\n<span class=\"failure\">FAILED</span>\n");
}
}
......
......@@ -17,3 +17,14 @@ h1 {
color: #004975;
font-weight: bold;
}
/* Update styles */
h3.update {
font-size: 1em;
}
pre.update span.success {
color: #6bb521;
}
pre.update span.failure {
color: #b63300;
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment