summaryrefslogtreecommitdiff
path: root/core/controllers/scaffold.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-27 21:07:18 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-27 21:07:18 +0000
commitbd15853708ae73ee69220738a061e10d015d7fb9 (patch)
treefacfbd5b08e3cbb8e7fa2b4adf433b54d4c0c5bc /core/controllers/scaffold.php
parent0b9fe18a6bf4036a05db7f9479d7b55d3fe5c782 (diff)
This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
Diffstat (limited to 'core/controllers/scaffold.php')
-rw-r--r--core/controllers/scaffold.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php
index 64d9000d..554d576c 100644
--- a/core/controllers/scaffold.php
+++ b/core/controllers/scaffold.php
@@ -509,8 +509,8 @@ class Scaffold_Controller extends Template_Controller {
// We now have a clean install with just the packages that we want. Make sure that the
// database is clean too.
$db = Database::instance();
- $db->query("TRUNCATE `sessions`");
- $db->query("TRUNCATE `logs`");
+ $db->query("TRUNCATE `[sessions]`");
+ $db->query("TRUNCATE `[logs]`");
$db->update("users", array("password" => ""), array("id" => 2));
$dbconfig = Kohana::config('database.default');