Site setup fixes

This commit is contained in:
Deon George
2011-12-30 18:10:02 +11:00
parent 125407656d
commit acd1bf116c
16 changed files with 231 additions and 29 deletions

View File

@@ -16,7 +16,10 @@ class DB extends Kohana_DB {
{
$db = new Database_Query_Builder_Delete($table);
return $db->where($table.'.site_id','=',Config::siteid());
if (! in_array($table,Config::$no_site_id_tables))
return $db->where($table.'.site_id','=',Config::siteid());
else
return $db;
}
// Add the site_id to the update query
@@ -24,7 +27,10 @@ class DB extends Kohana_DB {
{
$db = new Database_Query_Builder_Update($table);
return $db->where($table.'.site_id','=',Config::siteid());
if (! in_array($table,Config::$no_site_id_tables))
return $db->where($table.'.site_id','=',Config::siteid());
else
return $db;
}
}
?>