Changeset 6444
- Timestamp:
- 12/21/2007 01:35:26 AM (18 years ago)
- Location:
- branches/2.3
- Files:
-
- 3 edited
-
wp-admin/install.php (modified) (3 diffs)
-
wp-admin/setup-config.php (modified) (2 diffs)
-
wp-includes/wp-db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/wp-admin/install.php
r6140 r6444 14 14 else 15 15 $step = 0; 16 function display_header(){ 16 17 header( 'Content-Type: text/html; charset=utf-8' ); 17 18 ?> … … 25 26 <body> 26 27 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> 28 27 29 <?php 30 }//end function display_header(); 31 28 32 // Let's check to make sure WP isn't already installed. 29 if ( is_blog_installed() ) die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>');33 if ( is_blog_installed() ) {display_header(); die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>');} 30 34 31 35 switch($step) { 32 36 case 0: 33 37 case 1: // in case people are directly linking to this 38 display_header(); 34 39 ?> 35 40 <h1><?php _e('Welcome'); ?></h1> … … 62 67 break; 63 68 case 2: 69 if ( !empty($wpdb->error) ) 70 wp_die($wpdb->error->get_error_message()); 71 display_header(); 64 72 // Fill in the data we gathered 65 73 $weblog_title = stripslashes($_POST['weblog_title']); -
branches/2.3/wp-admin/setup-config.php
r6137 r6444 4 4 require_once('../wp-includes/compat.php'); 5 5 require_once('../wp-includes/functions.php'); 6 require_once('../wp-includes/classes.php'); 6 7 7 8 if (!file_exists('../wp-config-sample.php')) … … 162 163 // We'll fail here if the values are no good. 163 164 require_once('../wp-includes/wp-db.php'); 165 if ( !empty($wpdb->error) ) 166 wp_die($wpdb->error->get_error_message()); 167 164 168 $handle = fopen('../wp-config.php', 'w'); 165 169 -
branches/2.3/wp-includes/wp-db.php
r6443 r6444 98 98 <ul> 99 99 <li>Are you sure it exists?</li> 100 <li>Does the user <code>".DB_USER."</code> have permission to use the <code>$db</code> database?</li> 100 101 <li>On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?</li> 101 102 </ul> … … 409 410 */ 410 411 function bail($message) { // Just wraps errors in a nice header and footer 411 if ( !$this->show_errors ) 412 if ( !$this->show_errors ) { 413 if ( class_exists('WP_Error') ) 414 $this->error = new WP_Error('500', $message); 415 else 416 $this->error = $message; 412 417 return false; 418 } 413 419 wp_die($message); 414 420 }
Note: See TracChangeset
for help on using the changeset viewer.