diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-07-30 18:44:40 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-07-30 18:44:40 -0500 |
| commit | 01bc818d465ab168288e260745a045ff2794648d (patch) | |
| tree | 299973235aa927758e62711ff686e391ac242933 /phpBB/install/install_update.php | |
| parent | edcac438df164764c84ca9fb7a7f751bf76d5c34 (diff) | |
| download | forums-01bc818d465ab168288e260745a045ff2794648d.tar forums-01bc818d465ab168288e260745a045ff2794648d.tar.gz forums-01bc818d465ab168288e260745a045ff2794648d.tar.bz2 forums-01bc818d465ab168288e260745a045ff2794648d.tar.xz forums-01bc818d465ab168288e260745a045ff2794648d.zip | |
[ticket/10875] Fix SQL Caching
The sql_save function cannot take arguments by reference since it is called
by call_user_func_array()
Replace use of isset($cache->sql_rowset[$query_id]) with $cache->sql_exists
Replace $cache->cache_dir with $cache->get_driver()->cache_dir
PHPBB3-10875
Diffstat (limited to 'phpBB/install/install_update.php')
| -rw-r--r-- | phpBB/install/install_update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index c2feaa086a..88b00f1cf1 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -349,7 +349,7 @@ class install_update extends module // We are directly within an update. To make sure our update list is correct we check its status. $update_list = ($request->variable('check_again', false, false, phpbb_request_interface::POST)) ? false : $cache->get('_update_list'); - $modified = ($update_list !== false) ? @filemtime($cache->cache_dir . 'data_update_list.' . $phpEx) : 0; + $modified = ($update_list !== false) ? @filemtime($cache->get_driver()->cache_dir . 'data_update_list.' . $phpEx) : 0; // Make sure the list is up-to-date if ($update_list !== false) |
