mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-09 13:09:33 -04:00
This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
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