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:
Tim Almdal
2009-02-27 21:07:18 +00:00
parent 0b9fe18a6b
commit bd15853708
15 changed files with 83 additions and 82 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");