mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
r560
Проверка на остаточные записи об уже удаленных топиках git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@560 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
07be1ec5f5
commit
a48ea08a1f
2 changed files with 5 additions and 2 deletions
|
@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||
$bb_cfg['tp_release_date'] = '17-01-2014';
|
||||
$bb_cfg['tp_release_state'] = 'R559';
|
||||
$bb_cfg['tp_release_state'] = 'R560';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
|
|
@ -6,7 +6,7 @@ function sync ($type, $id)
|
|||
{
|
||||
switch ($type)
|
||||
{
|
||||
case 'forum':
|
||||
case 'forum':
|
||||
|
||||
$all_forums = ($id === 'all');
|
||||
|
||||
|
@ -66,6 +66,9 @@ function sync ($type, $id)
|
|||
break;
|
||||
}
|
||||
|
||||
// Проверка на остаточные записи об уже удаленных топиках
|
||||
DB()->query("DELETE FROM ". BB_TOPICS ." WHERE topic_first_post_id NOT IN (SELECT post_id FROM ". BB_POSTS .")");
|
||||
|
||||
$tmp_sync_topics = 'tmp_sync_topics';
|
||||
|
||||
DB()->query("
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue