mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
fix table name for deletion of indexes before regeneration
This commit is contained in:
parent
6e97bc0808
commit
a602e1bc68
@ -101,7 +101,7 @@ if (!$dbcontrol->checkDB()) {
|
||||
*/
|
||||
// New regeneration
|
||||
mtrace("Deleting old index entries.");
|
||||
delete_records('search_documents');
|
||||
delete_records(SEARCH_DATABASE_TABLE);
|
||||
|
||||
//begin timer
|
||||
search_stopwatch();
|
||||
@ -192,12 +192,12 @@ mtrace(".<br/><a href='index.php'>Back to query page</a>.");
|
||||
mtrace('</pre>');
|
||||
|
||||
//finished, turn busy flag off
|
||||
set_config("search_indexer_busy", "0");
|
||||
set_config('search_indexer_busy', '0');
|
||||
|
||||
//mark the time we last updated
|
||||
set_config("search_indexer_run_date", time());
|
||||
set_config('search_indexer_run_date', time());
|
||||
|
||||
//and the index size
|
||||
set_config("search_index_size", (int)$index->count());
|
||||
set_config('search_index_size', (int)$index->count());
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user