mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11162] Rename tricky updates to database helper.
PHPBB3-11162
This commit is contained in:
parent
f5de11438c
commit
e2c67a8e42
7 changed files with 4 additions and 4 deletions
|
@ -417,7 +417,7 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
|
||||||
// Update the topic watch table.
|
// Update the topic watch table.
|
||||||
if (!function_exists('phpbb_update_rows_avoiding_duplicates_notify_status'))
|
if (!function_exists('phpbb_update_rows_avoiding_duplicates_notify_status'))
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'includes/functions_tricky_update.' . $phpEx);
|
include($phpbb_root_path . 'includes/functions_database_helper.' . $phpEx);
|
||||||
}
|
}
|
||||||
phpbb_update_rows_avoiding_duplicates_notify_status($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
|
phpbb_update_rows_avoiding_duplicates_notify_status($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
|
||||||
|
|
||||||
|
|
|
@ -622,7 +622,7 @@ function merge_posts($topic_id, $to_topic_id)
|
||||||
// If the topic no longer exist, we will update the topic watch table.
|
// If the topic no longer exist, we will update the topic watch table.
|
||||||
if (!function_exists('phpbb_update_rows_avoiding_duplicates_notify_status'))
|
if (!function_exists('phpbb_update_rows_avoiding_duplicates_notify_status'))
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'includes/functions_tricky_update.' . $phpEx);
|
include($phpbb_root_path . 'includes/functions_database_helper.' . $phpEx);
|
||||||
}
|
}
|
||||||
phpbb_update_rows_avoiding_duplicates_notify_status($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
|
phpbb_update_rows_avoiding_duplicates_notify_status($db, TOPICS_WATCH_TABLE, 'topic_id', $topic_ids, $to_topic_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_tricky_update.php';
|
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_database_helper.php';
|
||||||
|
|
||||||
class phpbb_update_rows_avoiding_duplicates_notify_status_test extends phpbb_database_test_case
|
class phpbb_update_rows_avoiding_duplicates_notify_status_test extends phpbb_database_test_case
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_tricky_update.php';
|
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_database_helper.php';
|
||||||
|
|
||||||
class phpbb_update_rows_avoiding_duplicates_test extends phpbb_database_test_case
|
class phpbb_update_rows_avoiding_duplicates_test extends phpbb_database_test_case
|
||||||
{
|
{
|
Loading…
Add table
Reference in a new issue