+ Censorlist was extended - added replacement parametr
+ Fixed bug with DB Size in check_script.php + Deleted a lot of indexes in check_script_data.php + Deleted cache index and forum lastpost section in cache_index.php and cache_forum.php + Fixed other bugs in warnings + Fixed pagination in search.php + Replaced DSF logo to uForum logo + Moved differend elements in skin + Added "WHOIS" option in "Admin/Mod Pool" in view topic + Fixed bug in add warnings: couldn't add warn for admin/mod git-svn-id: https://svn.pioder.pl/uf-svn/uF@29 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
6
includes/cache/cache_index.php
vendored
6
includes/cache/cache_index.php
vendored
@@ -17,7 +17,9 @@ if(!defined('IN_uF'))
|
||||
//lastpost in forum cache
|
||||
//cache forums --don't modify!!!
|
||||
$cache_id=1;
|
||||
$sql = "SELECT ".FORUMS_TABLE.".*, COUNT(".POSTS_TABLE.".p_id) as amout, ".POSTS_TABLE.".f_id AS count FROM ".FORUMS_TABLE." LEFT JOIN ".POSTS_TABLE." ON ".FORUMS_TABLE.".f_id= ".POSTS_TABLE.".f_id GROUP BY `f_id` ORDER BY `c_id`, `sort`";
|
||||
$sql = "SELECT ".FORUMS_TABLE.".*
|
||||
FROM ".FORUMS_TABLE."
|
||||
ORDER BY `c_id`, `sort`";
|
||||
$query = DataBase::sql_query($sql,CRITICAL,'Could not obtain forum information.');
|
||||
while($result = DataBase::fetch($query))
|
||||
{
|
||||
@@ -27,7 +29,7 @@ while($result = DataBase::fetch($query))
|
||||
$forum[$cache_id]['c_id'] = $result['c_id'];
|
||||
$forum[$cache_id]['sort'] = $result['sort'];
|
||||
$forum[$cache_id]['lastpost'] = $result['lastpost'];
|
||||
$count_forum[$result['f_id']] = $result['amout'];
|
||||
$count_forum[$result['f_id']] = $result['posts'];
|
||||
$cache_id+=1;
|
||||
}
|
||||
$sql = "SELECT `u_id`,`nick`, `regdate` AS count FROM ".USERS_TABLE." ORDER BY `regdate` DESC";
|
||||
|
||||
Reference in New Issue
Block a user