Skip to content

Commit

Permalink
ENH: Get most recent revision only if revision parameter is not speci…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed May 29, 2017
1 parent a16042b commit 71d41e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions controllers/IndexController.php
Expand Up @@ -65,9 +65,13 @@ function indexAction()
$this->view->layout = 'layout';
}

$folderDaos = array(
$this->_getPackageFolder('Package', 'nightly'));
$defaultRevision = $packageModel->getMostRecentRevision($folderDaos);
$defaultRevision = '';
if (!$this->hasParam('revision'))
{
$folderDaos = array(
$this->_getPackageFolder('Package', 'nightly'));
$defaultRevision = $packageModel->getMostRecentRevision($folderDaos);
}

foreach(array('os', 'arch', 'release', 'revision', 'category', 'search') as $option)
{
Expand Down

0 comments on commit 71d41e9

Please sign in to comment.