Make WordPress Core

Changeset 4502


Ignore:
Timestamp:
11/20/2006 04:07:34 AM (18 years ago)
Author:
ryan
Message:

Fix logo link and use install.css in wpdb bail. Props Sewar. fixes #3209

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r4495 r4502  
    313313
    314314        header('Content-Type: text/html; charset=utf-8');
     315
     316        if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') )
     317            $admin_dir = '';
     318        else
     319            $admin_dir = 'wp-admin/';
     320
    315321?>
    316322<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    319325    <title>WordPress &rsaquo; Error</title>
    320326    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    321     <style media="screen" type="text/css">
    322     <!--
    323     html {
    324         background: #eee;
    325     }
    326     body {
    327         background: #fff;
    328         color: #000;
    329         font-family: Georgia, "Times New Roman", Times, serif;
    330         margin-left: 25%;
    331         margin-right: 25%;
    332         padding: .2em 2em;
    333     }
    334 
    335     h1 {
    336         color: #006;
    337         font-size: 18px;
    338         font-weight: lighter;
    339     }
    340 
    341     h2 {
    342         font-size: 16px;
    343     }
    344 
    345     p, li, dt {
    346         line-height: 140%;
    347         padding-bottom: 2px;
    348     }
    349 
    350     ul, ol {
    351         padding: 5px 5px 5px 20px;
    352     }
    353     #logo {
    354         margin-bottom: 2em;
    355     }
    356     -->
    357     </style>
     327    <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" />
    358328</head>
    359329<body>
    360     <h1 id="logo"><img alt="WordPress" src="<?php echo 'wp-admin/images/wordpress-logo.png' ?>" /></h1>
     330    <h1 id="logo"><img alt="WordPress" src="<?php echo $admin_dir; ?>images/wordpress-logo.png" /></h1>
    361331    <p><?php echo $message; ?></p>
    362332</body>
Note: See TracChangeset for help on using the changeset viewer.