aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache/driver/null.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-20 04:35:30 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-20 04:35:30 -0500
commite50f69187f21e29a12512880e0c69f2876e84aa1 (patch)
tree852fd2b5456e55ec8c0f04fb54ea770dae63f554 /phpBB/includes/cache/driver/null.php
parent3701d83ecbd358c2ac78b74e314ddb74ce7d1812 (diff)
downloadforums-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/cache/driver/null.php')
-rw-r--r--phpBB/includes/cache/driver/null.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/cache/driver/null.php b/phpBB/includes/cache/driver/null.php
index 687604d14f..2fadc27ba3 100644
--- a/phpBB/includes/cache/driver/null.php
+++ b/phpBB/includes/cache/driver/null.php
@@ -105,9 +105,9 @@ class phpbb_cache_driver_null extends phpbb_cache_driver_base
}
/**
- * Save sql query
+ * {@inheritDoc}
*/
- function sql_save($query, $query_result, $ttl)
+ function sql_save(phpbb_db_driver $db, $query, $query_result, $ttl)
{
return $query_result;
}