aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_convert.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-28 13:27:58 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-28 13:27:58 +0000
commit889fa871402814874d5d4f01b2f1c829d8206eb9 (patch)
treece3d6b9c23a6df118c1458cc7adeafa10ffde5a8 /phpBB/install/install_convert.php
parentfbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3 (diff)
downloadforums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.gz
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.bz2
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.tar.xz
forums-889fa871402814874d5d4f01b2f1c829d8206eb9.zip
implement new phpbb::$acm object, replacing $cache global
git-svn-id: file:///svn/phpbb/trunk@9240 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_convert.php')
-rw-r--r--phpBB/install/install_convert.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php
index 552fb7a113..0a2d1b5d44 100644
--- a/phpBB/install/install_convert.php
+++ b/phpBB/install/install_convert.php
@@ -90,7 +90,7 @@ class install_convert extends module
function main($mode, $sub)
{
- global $lang, $template, $cache, $config, $language, $table_prefix;
+ global $lang, $template, $config, $language, $table_prefix;
global $convert;
$this->tpl_name = 'install_convert';
@@ -213,7 +213,7 @@ class install_convert extends module
// If we reached this step (conversion completed) we want to purge the cache and log the user out.
// This is for making sure the session get not screwed due to the 3.0.x users table being completely new.
- $cache->purge();
+ phpbb::$acm->purge();
require(PHPBB_ROOT_PATH . 'config.' . PHP_EXT);
require(PHPBB_ROOT_PATH . 'includes/constants.' . PHP_EXT);
@@ -333,7 +333,7 @@ class install_convert extends module
*/
function get_convert_settings($sub)
{
- global $lang, $language, $template, $db, $config, $cache;
+ global $lang, $language, $template, $db, $config;
require(PHPBB_ROOT_PATH . 'config.' . PHP_EXT);
require(PHPBB_ROOT_PATH . 'includes/constants.' . PHP_EXT);
@@ -581,7 +581,7 @@ class install_convert extends module
*/
function convert_data($sub)
{
- global $template, $user, $db, $lang, $config, $cache;
+ global $template, $user, $db, $lang, $config;
global $convert, $convert_row, $message_parser, $skip_rows, $language;
require(PHPBB_ROOT_PATH . 'config.' . PHP_EXT);
@@ -1438,7 +1438,7 @@ class install_convert extends module
*/
function sync_forums($sync_batch)
{
- global $template, $user, $db, $config, $cache;
+ global $template, $user, $db, $config;
global $convert;
$template->assign_block_vars('checks', array(
@@ -1578,7 +1578,7 @@ class install_convert extends module
*/
function final_jump($final_jump)
{
- global $template, $user, $src_db, $same_db, $db, $config, $cache;
+ global $template, $user, $src_db, $same_db, $db, $config;
global $convert;
$template->assign_block_vars('checks', array(
@@ -1617,7 +1617,7 @@ class install_convert extends module
*/
function jump($jump, $last_statement)
{
- global $template, $user, $src_db, $same_db, $db, $config, $cache;
+ global $template, $user, $src_db, $same_db, $db, $config;
global $convert;
$template->assign_block_vars('checks', array(
@@ -1743,7 +1743,7 @@ class install_convert extends module
// TODO: sync() is likely going to bomb out on forums with a considerable amount of topics.
// TODO: the sync function is able to handle FROM-TO values, we should use them here (batch processing)
sync('forum', '', '', false, true);
- $cache->destroy('sql', FORUMS_TABLE);
+ phpbb::$acm->destroy_sql(FORUMS_TABLE);
$template->assign_block_vars('checks', array(
'TITLE' => $user->lang['SYNC_FORUMS'],
@@ -1920,7 +1920,7 @@ class install_convert extends module
*/
function process_row(&$schema, &$sql_data, &$insert_values)
{
- global $template, $user, $db, $lang, $config, $cache;
+ global $template, $user, $db, $lang, $config;
global $convert, $convert_row;
$sql_flag = false;