Permalink
Browse files

Support CI 2.0 and fix can not access Migrations::verbose bug

  • Loading branch information...
1 parent eae5442 commit 48edb9efc36802e829190ae6ef7776d30cc749ab @yesmeck committed Jul 5, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 libraries/Migrations.php
View
@@ -5,7 +5,7 @@
* An open source utility for CodeIgniter inspired by Ruby on Rails
*
* @package Migrations
- * @author Matas Montes
+ * @author Matas Montes
*
* Rewritten by:
*
@@ -39,7 +39,8 @@
function __get($var)
{
- return CI_Base::get_instance()->$var;
+ $CI =& get_instance();
+ return $CI->$var;
}
}
@@ -51,7 +52,7 @@ function __get($var)
* Utility main controller.
*
* @package Migrations
- * @author Matas Montes
+ * @author Matas Montes
*/
class Migrations {
@@ -105,6 +106,10 @@ public function set_verbose($state)
{
$this->verbose = $state;
}
+
+ public function get_verbose() {
+ return $this->verbose;
+ }
/**
* Installs the schema up to the last version

0 comments on commit 48edb9e

Please sign in to comment.