Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fix module upgrade component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Oct 1, 2015
1 parent cf7a114 commit cf20d35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/controllers/components/UpgradeComponent.php
Expand Up @@ -188,7 +188,11 @@ public function upgrade($currentVersion = false, $testing = false)
$currentVersion = $this->transformVersionToNumeric($currentVersion);
}

$version = $this->getNewestVersion($text = false);
$version = UtilityComponent::getLatestModuleVersion($this->module);
if ($version === false) {
return false;
}
$version = $this->transformVersionToNumeric($version);

if ($currentVersion >= $version || $version === 0) {
return false;
Expand Down

0 comments on commit cf20d35

Please sign in to comment.