Skip to content

Commit

Permalink
Improved builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bezumkin committed Feb 18, 2014
1 parent 922b48f commit 568fb7d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@
$totalTime= ($tend - $tstart);
$totalTime= sprintf("%2.4f s", $totalTime);

$signature = $builder->getSignature();
if (defined('PKG_AUTO_INSTALL') && PKG_AUTO_INSTALL) {
$signature = $builder->getSignature();
$sig = explode('-',$signature);
$versionSignature = explode('.',$sig[1]);

Expand Down Expand Up @@ -300,10 +300,9 @@
$package->save();
}
$package->install();

if (!empty($_GET['download'])) {
echo '<script>document.location.href = "/core/packages/' . $signature.'.transport.zip' . '";</script>';
}
}
if (!empty($_GET['download'])) {
echo '<script>document.location.href = "/core/packages/' . $signature.'.transport.zip' . '";</script>';
}

$modx->log(modX::LOG_LEVEL_INFO,"\n<br />Execution time: {$totalTime}\n");
Expand Down

0 comments on commit 568fb7d

Please sign in to comment.