mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user