diff options
Diffstat (limited to 'phpBB/includes/acm')
-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); |