diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-20 04:35:30 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-20 04:35:30 -0500 |
commit | e50f69187f21e29a12512880e0c69f2876e84aa1 (patch) | |
tree | 852fd2b5456e55ec8c0f04fb54ea770dae63f554 /phpBB/includes/db/driver/postgres.php | |
parent | 3701d83ecbd358c2ac78b74e314ddb74ce7d1812 (diff) | |
download | forums-e50f69187f21e29a12512880e0c69f2876e84aa1.tar forums-e50f69187f21e29a12512880e0c69f2876e84aa1.tar.gz forums-e50f69187f21e29a12512880e0c69f2876e84aa1.tar.bz2 forums-e50f69187f21e29a12512880e0c69f2876e84aa1.tar.xz forums-e50f69187f21e29a12512880e0c69f2876e84aa1.zip |
[ticket/11037] Eliminate global $db usage in cache drivers.
The only time $db is needed in cache drivers is to navigate the
result set in sql_save. Pass it as a parameter in that function.
PHPBB3-11037
Diffstat (limited to 'phpBB/includes/db/driver/postgres.php')
-rw-r--r-- | phpBB/includes/db/driver/postgres.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/driver/postgres.php b/phpBB/includes/db/driver/postgres.php index 147ecd04d9..cca97c9c0e 100644 --- a/phpBB/includes/db/driver/postgres.php +++ b/phpBB/includes/db/driver/postgres.php @@ -211,7 +211,7 @@ class phpbb_db_driver_postgres extends phpbb_db_driver if ($cache_ttl) { $this->open_queries[(int) $this->query_result] = $this->query_result; - $this->query_result = $cache->sql_save($query, $this->query_result, $cache_ttl); + $this->query_result = $cache->sql_save($this, $query, $this->query_result, $cache_ttl); } else if (strpos($query, 'SELECT') === 0 && $this->query_result) { |