Core is now 0.2.1

Former-commit-id: a621821c9b
This commit is contained in:
Jérôme Schneider 2012-08-06 16:20:19 +02:00
parent 26ccd56d65
commit b73dfe3624
457 changed files with 15 additions and 4 deletions

2
Core
View file

@ -1 +1 @@
CoreVersions/0.2.0
CoreVersions/0.2.1

View file

@ -39,14 +39,25 @@ class VersionUpgrade extends \Flake\Core\Controller {
$sBigIcon = "glyph2x-magic";
$sBaikalVersion = BAIKAL_VERSION;
$sBaikalConfiguredVersion = BAIKAL_CONFIGURED_VERSION;
if(BAIKAL_CONFIGURED_VERSION === BAIKAL_VERSION) {
$sMessage = "Your system is configured to use version <strong>" . $sBaikalConfiguredVersion . "</strong>.<br />There's no upgrade to be done.";
} else {
$sMessage = "Upgrading Baïkal from version <strong>" . $sBaikalConfiguredVersion . "</strong> to version <strong>" . $sBaikalVersion . "</strong>";
}
$sHtml = <<<HTML
<header class="jumbotron subhead" id="overview">
<h1><i class="{$sBigIcon}"></i>Baïkal upgrade wizard</h1>
<p class="lead">Upgrading Baïkal from version <strong>{$sBaikalConfiguredVersion}</strong> to version <strong>{$sBaikalVersion}</strong></p>
<p class="lead">{$sMessage}</p>
</header>
HTML;
$sHtml .= $this->upgrade(BAIKAL_CONFIGURED_VERSION, BAIKAL_VERSION);
return $sHtml;
}
protected function upgrade($sVersionFrom, $sVersionTo) {
return "";
}
}

Some files were not shown because too many files have changed in this diff Show more