Ticket #11529: repair.php.diff

File repair.php.diff, 1.8 KB (added by gautam2011, 2 years ago)
  • repair.php

     
    4141                        echo "<p>The {$wpdb->prefix}$table table is okay."; 
    4242                } else { 
    4343                        echo "<p>The {$wpdb->prefix}$table table is not okay. It is reporting the following error: <code>$check->Msg_text</code>.  WordPress will attempt to repair this table&hellip;"; 
    44                         $repair = $wpdb->get_row("REPAIR TABLE {$wpb->prefix}$table"); 
     44                        $repair = $wpdb->get_row("REPAIR TABLE {$wpdb->prefix}$table"); 
    4545                        if ( 'OK' == $check->Msg_text ) { 
    46                                 echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Sucessfully repaired the {$wpb->prefix}$table table."; 
     46                                echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Sucessfully repaired the {$wpdb->prefix}$table table."; 
    4747                        } else { 
    4848                                echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Failed to repair the {$wpdb->prefix}$table table. Error: $check->Msg_text<br />"; 
    4949                                $problems["{$wpdb->prefix}$table"] = $check->Msg_text; 
     
    5353                if ( $okay && $optimize ) { 
    5454                        $check = $wpdb->get_row("ANALYZE TABLE {$wpdb->prefix}$table"); 
    5555                        if ( 'Table is already up to date' == $check->Msg_text )  { 
    56                                 echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;The {$wpb->prefix}$table table is already optimized."; 
     56                                echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;The {$wpdb->prefix}$table table is already optimized."; 
    5757                        } else { 
    5858                                $check = $wpdb->get_row("OPTIMIZE TABLE {$wpdb->prefix}$table"); 
    5959                                if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text ) 
    60                                         echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Sucessfully optimized the {$wpb->prefix}$table table."; 
     60                                        echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Sucessfully optimized the {$wpdb->prefix}$table table."; 
    6161                                else 
    6262                                        echo "<br />&nbsp;&nbsp;&nbsp;&nbsp;Failed to optimize the {$wpdb->prefix}$table table. Error: $check->Msg_text"; 
    6363                        }