diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-03-04 18:15:56 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-04 18:15:56 +0000 |
| commit | 014999758e2f4efa433a9c4e71d0551e0b5b318a (patch) | |
| tree | 8d15d1130c44849ddee8fcb9f6c9aa7603822b99 /kohana/libraries/Model.php | |
| parent | c0e65b202977c78c4562502373f630b8f835f1ff (diff) | |
Updated Kohana to r4033
Diffstat (limited to 'kohana/libraries/Model.php')
| -rw-r--r-- | kohana/libraries/Model.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kohana/libraries/Model.php b/kohana/libraries/Model.php index 4134ff2d..9c78507b 100644 --- a/kohana/libraries/Model.php +++ b/kohana/libraries/Model.php @@ -12,7 +12,7 @@ class Model_Core { // Database object - protected $db; + protected $db = 'default'; /** * Loads the database instance, if the database is not already loaded. @@ -24,7 +24,7 @@ class Model_Core { if ( ! is_object($this->db)) { // Load the default database - $this->db = Database::instance('default'); + $this->db = Database::instance($this->db); } } |
