фикс общего сброса git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@411 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2012-05-05 00:45:48 +00:00
commit 779a8c6321
3 changed files with 11 additions and 11 deletions

View file

@ -264,7 +264,7 @@ class cache_common
/**
* Remove variable
*/
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
return false;
}
@ -393,7 +393,7 @@ class cache_memcache extends cache_common
return ($this->connected) ? $this->memcache->set($name, $value, false, $ttl) : false;
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
if (!$this->connected) $this->connect();
@ -496,7 +496,7 @@ class cache_sqlite extends cache_common
return (bool) $result;
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
if($name)
{
@ -663,7 +663,7 @@ class sqlite_common extends cache_common
return 'SQLite error #'. ($err_code = sqlite_last_error($this->dbh)) .': '. sqlite_error_string($err_code);
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
if($name)
{
@ -767,7 +767,7 @@ class cache_redis extends cache_common
}
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
if (!$this->connected) $this->connect();
@ -822,7 +822,7 @@ class cache_eaccelerator extends cache_common
return eaccelerator_put($name, $value, $ttl);
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@ -875,7 +875,7 @@ class cache_apc extends cache_common
return apc_store($name, $value, $ttl);
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@ -928,7 +928,7 @@ class cache_xcache extends cache_common
return xcache_set($name, $value, $ttl);
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
$this->cur_query = "cache->rm('$name')";
$this->debug('start');
@ -1004,7 +1004,7 @@ class cache_file extends cache_common
return (bool) file_write($filecache, $filename, false, true, true);
}
function rm ($name, $prefix = '')
function rm ($name = '', $prefix = '')
{
$clear = false;
if($name)

View file

@ -52,7 +52,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta';
$bb_cfg['tp_release_state'] = 'R410';
$bb_cfg['tp_release_state'] = 'R411';
$bb_cfg['tp_release_date'] = '05-05-2012';
// Database

View file

@ -11,7 +11,7 @@ $row = DB()->fetch_row("SELECT COUNT(*) AS usercount FROM ". BB_USERS ." WHERE u
$data['usercount'] = number_format($row['usercount']);
// newestuser
$row = DB()->fetch_row("SELECT user_id, username, user_rank FROM ". BB_USERS ." ORDER BY user_id DESC LIMIT 1");
$row = DB()->fetch_row("SELECT user_id, username, user_rank FROM ". BB_USERS ." WHERE user_active = 1 ORDER BY user_id DESC LIMIT 1");
$data['newestuser'] = $row;
// post/topic count