Changeset 4841 for branches/2.0/wp-includes/wp-db.php
- Timestamp:
- 01/30/2007 06:33:48 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-includes/wp-db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/wp-db.php
r4620 r4841 41 41 42 42 function wpdb($dbuser, $dbpassword, $dbname, $dbhost) { 43 return $this->__construct($dbuser, $dbpassword, $dbname, $dbhost); 44 } 45 46 function __construct($dbuser, $dbpassword, $dbname, $dbhost) { 47 register_shutdown_function(array(&$this, "__destruct")); 48 43 49 $this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword); 44 50 if (!$this->dbh) { … … 56 62 57 63 $this->select($dbname); 64 } 65 66 function __destruct() { 67 return true; 58 68 } 59 69
Note: See TracChangeset
for help on using the changeset viewer.