Permalink
Browse files

Fix fatal error in JInstallerFile::uninstall()

  • Loading branch information...
1 parent 1d62cf3 commit 1e6497892f17cd11ab7304068a8ac32c499dbfbe @mahagr committed Sep 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 libraries/joomla/installer/adapters/file.php
@@ -512,6 +512,8 @@ public function uninstall($id)
$this->parent->set('extension_message', $msg);
}
+ $db = JFactory::getDbo();
+
// Let's run the uninstall queries for the extension
$result = $this->parent->parseSQLFiles($this->manifest->uninstall->sql);
@@ -523,7 +525,6 @@ public function uninstall($id)
}
// Remove the schema version
- $db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->delete()
->from('#__schemas')

0 comments on commit 1e64978

Please sign in to comment.