Permalink
Browse files

setup method call was missing. Should be fine now

  • Loading branch information...
1 parent 6b57fbd commit f598b903df40cd0e98c3a372f28c4f15c7e57106 Christoph Baur committed Jun 8, 2011
Showing with 4 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 config/sites_activation.php
  3. +1 −0 models/behaviors/site_filter.php
  4. +1 −0 models/site_domain.php
View
@@ -1,2 +1,3 @@
*.swp
*.log
+.DS_Store
@@ -26,7 +26,7 @@ public function onActivation(&$controller) {
//Ignore the cache since the tables wont be inside the cache at this point
//$db->cacheSources = false;
- @unlink(TMP . 'cache' . DS . 'models/cake_model_default_' . $db->config["database"] . '_list');
+ @unlink(TMP . 'cache' . DS . 'models/cake_model_' . ConnectionManager::getSourceName($db). '_' . $db->config["database"] . '_list');
$db->sources(true);
//Insert "ALL SITES"
@@ -31,6 +31,7 @@ function beforeFind(&$model, $query) {
if ($this->settings[$model->alias]['enabled'] === false) {
return $query;
}
+ $this->setup($model);
$site = Sites::currentSite();
$sites = array_unique(array(Sites::ALL_SITES, $site['Site']['id']));
View
@@ -2,6 +2,7 @@
class SiteDomain extends SitesAppModel {
var $name = 'SiteDomain';
var $useDbConfig = 'sites';
+ var $useTable = 'site_domains';
var $belongsTo = array(
'Site' => array(

0 comments on commit f598b90

Please sign in to comment.