Change the pattern to identify tables that need prefix substitution to

mirror the drupal pattern of using braces {}.
This commit is contained in:
Tim Almdal
2009-02-28 06:37:28 +00:00
parent ad56995baf
commit c04ff8e02f
21 changed files with 100 additions and 100 deletions

View File

@@ -57,7 +57,7 @@ class Admin_Comments_Controller extends Admin_Controller {
public function index() {
// Get rid of old deleted/spam comments
Database::instance()->query(
"DELETE FROM `[comments]` " .
"DELETE FROM {comments} " .
"WHERE state IN ('deleted', 'spam') " .
"AND unix_timestamp(now()) - updated > 86400 * 7");