Optimised Company() Setup() Config() and changed method_directory into URL

This commit is contained in:
Deon George
2013-02-12 22:14:59 +11:00
parent 97d894d472
commit 288d974cfa
63 changed files with 422 additions and 346 deletions

View File

@@ -25,7 +25,7 @@ class Model_Record_Id extends ORM_OSB {
$max = DB::select(array('MAX(id)','id'))
->from($mo->name)
->where('site_id','=',Config::siteid());
->where('site_id','=',Company::instance()->site());
$this->id = $max->execute()->get('id');
}