Changeset 1059
- Timestamp:
- 08/16/07 00:47:45 (1 year ago)
- Files:
-
- trunk/src/lyceum/wp-includes/wp-db.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/lyceum/wp-includes/wp-db.php
r1008 r1059 43 43 44 44 function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { 45 if (is_resource($this->_Cnn))46 return true;47 45 return $this->__construct($dbuser, $dbpassword, $dbname, $dbhost); 48 46 } … … 51 49 register_shutdown_function(array(&$this, "__destruct")); 52 50 53 $this-> _Cnn= @mysql_connect($dbhost, $dbuser, $dbpassword);54 if (!$this-> _Cnn) {51 $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword); 52 if (!$this->dbh) { 55 53 $this->bail(" 56 54 <h1>Error establishing a database connection</h1> … … 65 63 } 66 64 67 $this->dbh = $this->_Cnn;68 65 $this->select($dbname); 69 66 }
