diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-09-04 21:51:22 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-09-04 21:51:22 +0000 |
commit | 9f4d9ae26888020e8b32e16076d54220e4b9f16f (patch) | |
tree | 2b34f7dd48d2691d8ae742875f7a1b2f8f9d04e2 /phpBB/includes/acm/acm_file.php | |
parent | fec9073f3a21818fa3bcfe89f0a73e861a3ad229 (diff) | |
download | forums-9f4d9ae26888020e8b32e16076d54220e4b9f16f.tar forums-9f4d9ae26888020e8b32e16076d54220e4b9f16f.tar.gz forums-9f4d9ae26888020e8b32e16076d54220e4b9f16f.tar.bz2 forums-9f4d9ae26888020e8b32e16076d54220e4b9f16f.tar.xz forums-9f4d9ae26888020e8b32e16076d54220e4b9f16f.zip |
Minor change. You may have to empty your cache.
git-svn-id: file:///svn/phpbb/trunk@4468 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_file.php')
-rw-r--r-- | phpBB/includes/acm/acm_file.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 3f209bdf40..02f42a6f95 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -198,11 +198,10 @@ class acm return FALSE; } - include($this->cache_dir . 'sql_' . md5($query) . '.' . $phpEx); - $query_id = 'Cache id #' . count($this->sql_rowset); + include($this->cache_dir . 'sql_' . md5($query) . '.' . $phpEx); - $this->sql_rowset[$query_id] =& $rowset; +// $this->sql_rowset[$query_id] =& $rowset; return $query_id; } @@ -234,7 +233,7 @@ class acm $lines[] = substr($line, 0, -1) . ')'; } - fwrite($fp, "<?php\n\n/*\n$query\n*/\n\n\$rowset = array(" . implode(',', $lines) . ') ?>'); + fwrite($fp, "<?php\n\n/*\n$query\n*/\n\n\$this->sql_rowset[\$query_id] = array(" . implode(',', $lines) . ') ?>'); @flock($fp, LOCK_UN); fclose($fp); |