diff options
Diffstat (limited to 'wp-includes/wp-db.php')
-rw-r--r-- | wp-includes/wp-db.php | 100 |
1 files changed, 51 insertions, 49 deletions
diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 142a3ec..37f361a 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -373,59 +373,61 @@ class wpdb { } function bail($message) { // Just wraps errors in a nice header and footer - if ( !$this->show_errors ) - return false; - header( 'Content-Type: text/html; charset=utf-8'); - echo <<<HEAD - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title>WordPress › Error</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <style media="screen" type="text/css"> - <!-- - html { - background: #eee; - } - body { - background: #fff; - color: #000; - font-family: Georgia, "Times New Roman", Times, serif; - margin-left: 25%; - margin-right: 25%; - padding: .2em 2em; - } + if ( !$this->show_errors ) + return false; - h1 { - color: #006; - font-size: 18px; - font-weight: lighter; - } + header( 'Content-Type: text/html; charset=utf-8'); +?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>WordPress › Error</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <style media="screen" type="text/css"> + <!-- + html { + background: #eee; + } + body { + background: #fff; + color: #000; + font-family: Georgia, "Times New Roman", Times, serif; + margin-left: 25%; + margin-right: 25%; + padding: .2em 2em; + } - h2 { - font-size: 16px; - } + h1 { + color: #006; + font-size: 18px; + font-weight: lighter; + } - p, li, dt { - line-height: 140%; - padding-bottom: 2px; - } + h2 { + font-size: 16px; + } - ul, ol { - padding: 5px 5px 5px 20px; - } - #logo { - margin-bottom: 2em; - } - --> - </style> - </head> - <body> - <h1 id="logo"><img alt="WordPress" src="http://static.wordpress.org/logo.png" /></h1> -HEAD; - echo $message; - echo "</body></html>"; - die(); + p, li, dt { + line-height: 140%; + padding-bottom: 2px; + } + + ul, ol { + padding: 5px 5px 5px 20px; + } + #logo { + margin-bottom: 2em; + } + --> + </style> +</head> +<body> + <h1 id="logo"><img alt="WordPress" src="<?php echo "wp-admin/images/wordpress-logo.png" ?>/></h1> + <p><?php echo $message; ?></p> +</body> +</html> +<?php + die(); } } |