Changed fixed table name to constant

git-svn-id: file:///svn/phpbb/trunk@1560 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2001-12-14 01:58:21 +00:00
parent c4e753e74a
commit 44d257f440

View file

@ -124,7 +124,7 @@ function remove_common($percent, $delete_common = 0)
if( $delete_common)
{
$sql = "DELETE FROM phpbb_search_wordmatch
$sql = "DELETE FROM ".SEARCH_MATCH_TABLE."
WHERE word_id IN ($common_word_ids)";
$result = $db->sql_query($sql);
if( !$result )
@ -215,7 +215,7 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize)
if( $post_rows = $db->sql_numrows($posts_result) )
{
// $sql = "LOCK TABLES phpbb_posts_text WRITE";
// $sql = "LOCK TABLES ".POST_TEXT_TABLE." WRITE";
// $result = $db->sql_query($sql);
print "\n<p>\n<a href='$PHP_SELF?batchstart=$batchstart'>Restart from posting $batchstart</a><br>\n";