Changeset 6426 for trunk/wp-admin/install.php
- Timestamp:
- 12/20/2007 02:10:09 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install.php
r6140 r6426 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']);
Note: See TracChangeset
for help on using the changeset viewer.