Permalink
Browse files

loading dbforge to avoid error on uninstall

  • Loading branch information...
1 parent b2eff2d commit 0dc8b58cf32d735a56699338a46ceecc52db3eaa @timkelty timkelty committed Nov 8, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 greeny/upd.greeny.php
View
8 greeny/upd.greeny.php
@@ -94,6 +94,11 @@ public function install()
*/
public function uninstall()
{
+ $this->EE->load->dbforge();
+
+ // Delete your custom tables & any ACT rows
+ // you have in the actions table
+
$mod_id = $this->EE->db->select('module_id')
->get_where('modules', array(
'module_name' => 'Greeny'
@@ -110,9 +115,6 @@ public function uninstall()
$this->EE->dbforge->drop_table('greeny');
- // $this->EE->load->dbforge();
- // Delete your custom tables & any ACT rows
- // you have in the actions table
return TRUE;
}

0 comments on commit 0dc8b58

Please sign in to comment.