mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
language additions
some small fixes git-svn-id: file:///svn/phpbb/trunk@4893 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -28,7 +28,14 @@ class acm
|
||||
function load()
|
||||
{
|
||||
global $phpEx;
|
||||
@include($this->cache_dir . 'data_global.' . $phpEx);
|
||||
if (file_exists($this->cache_dir . 'data_global.' . $phpEx))
|
||||
{
|
||||
@include($this->cache_dir . 'data_global.' . $phpEx);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function unload()
|
||||
@@ -230,7 +237,13 @@ class acm
|
||||
$query = preg_replace('/[\n\r\s\t]+/', ' ', $query);
|
||||
$query_id = 'Cache id #' . count($this->sql_rowset);
|
||||
|
||||
if (!file_exists($this->cache_dir . 'sql_' . md5($query) . ".$phpEx"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@include($this->cache_dir . 'sql_' . md5($query) . ".$phpEx");
|
||||
|
||||
if (!isset($expired))
|
||||
{
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user