From: Greg Sabino Mullane Date: Fri, 1 Dec 2006 04:37:48 +0000 (+0000) Subject: Change realTimestamp to a function only, per Tim's advice. X-Git-Tag: 1.31.0-rc.0~55021 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=13f9951eeb407c5b2391fb27689fc7a0073a4a60;p=lhc%2Fweb%2Fwiklou.git Change realTimestamp to a function only, per Tim's advice. --- diff --git a/includes/Database.php b/includes/Database.php index 525022159e..f35aaaa1e4 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -250,7 +250,6 @@ class Database { protected $mCascadingDeletes = false; protected $mCleanupTriggers = false; protected $mStrictIPs = false; - protected $mRealTimestamps = false; #------------------------------------------------------------------------------ # Accessors @@ -367,7 +366,7 @@ class Database { * Returns true if this database uses timestamps rather than integers */ function realTimestamps() { - return $this->mRealTimestamps; + return false; } /**#@+ diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index d0963af668..77f8374e8d 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -28,12 +28,15 @@ class DatabasePostgres extends Database { $this->mCascadingDeletes = true; $this->mCleanupTriggers = true; $this->mStrictIPs = true; - $this->mRealTimestamps = true; $this->mFlags = $flags; $this->open( $server, $user, $password, $dbName); } + function realTimestamps() { + return true; + } + static function newFromParams( $server = false, $user = false, $password = false, $dbName = false, $failFunction = false, $flags = 0) {