Log in with username/password: lyceum/lyceum

Changeset 1059

Show
Ignore:
Timestamp:
08/16/07 00:47:45 (1 year ago)
Author:
jjb
Message:

Removing "lazy loading" db strategy, which -- unless I'm really missing something -- was never doing anything at all, because it was placed in the constructor and not in the selector.

#710

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/wp-includes/wp-db.php

    r1008 r1059  
    4343 
    4444   function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { 
    45     if (is_resource($this->_Cnn)) 
    46       return true; 
    4745      return $this->__construct($dbuser, $dbpassword, $dbname, $dbhost); 
    4846   } 
     
    5149      register_shutdown_function(array(&$this, "__destruct")); 
    5250 
    53       $this->_Cnn = @mysql_connect($dbhost, $dbuser, $dbpassword); 
    54       if (!$this->_Cnn) { 
     51      $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword); 
     52      if (!$this->dbh) { 
    5553         $this->bail(" 
    5654<h1>Error establishing a database connection</h1> 
     
    6563      } 
    6664 
    67       $this->dbh = $this->_Cnn; 
    6865      $this->select($dbname); 
    6966   } 
Log in with username/password: lyceum/lyceum