Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Fix fatal error in JInstallerFile::uninstall() #1533

Merged
merged 1 commit into from Sep 15, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/joomla/installer/adapters/file.php
Expand Up @@ -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);

Expand All @@ -523,7 +525,6 @@ public function uninstall($id)
}

// Remove the schema version
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->delete()
->from('#__schemas')
Expand Down