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

Commit

Permalink
$tmpInstaller->install was executed twice on succes. This can insert …
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmedia committed Jan 21, 2012
1 parent 103ac1a commit 216102d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/joomla/installer/adapters/package.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public function install()
$package = JInstallerHelper::unpack($file);
}
$tmpInstaller = new JInstaller;
if (!$tmpInstaller->install($package['dir']))
$installResult = $tmpInstaller->install($package['dir']);
if (!$installResult)
{
$this->parent->abort(
JText::sprintf(
Expand All @@ -193,7 +194,7 @@ public function install()
{
$results[$i] = array(
'name' => $tmpInstaller->manifest->name,
'result' => $tmpInstaller->install($package['dir'])
'result' => $installResult
);
}
$i++;
Expand Down

0 comments on commit 216102d

Please sign in to comment.