Skip to content

Commit

Permalink
Fixed issue #5903: Not obvious in installation that you need at least…
Browse files Browse the repository at this point in the history
… one PDO DB driver installer

Dev Added a check for at least one DB driver to the pre-check screen
  • Loading branch information
c-schmitz committed Mar 14, 2012
1 parent f5bd11a commit 51baad7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/controllers/InstallerController.php
Expand Up @@ -201,6 +201,7 @@ public function stepViewLicense()
private function stepPreInstallationCheck()
{
$aData['clang'] = $clang = $this->lang;
$model = new InstallerConfigForm();
//usual data required by view
$aData['title'] = $clang->gT('Pre-installation check');
$aData['descp'] = $clang->gT('Pre-installation check for LimeSurvey ').Yii::app()->getConfig('versionnumber');
Expand All @@ -209,9 +210,15 @@ private function stepPreInstallationCheck()
$aData['phpVersion'] = phpversion();
// variable storing next button link.initially null
$aData['next'] = '';
$aData['dbtypes']=$model->supported_db_types;

$bProceed = $this->_check_requirements($aData);
$aData['dbtypes']=$model->supported_db_types;

if(count($aData['dbtypes'])==0)
{
$bProceed=false;
}
// after all check, if flag value is true, show next button and sabe step2 status.
if ($bProceed)
{
Expand Down
6 changes: 6 additions & 0 deletions application/views/installer/precheck_view.php
Expand Up @@ -61,6 +61,12 @@ function dirReport($dir, $write, $clang)
<td align="center" style="width: 225px;"><?php if (isset($verror) && $verror) { ?><span style='font-weight:bold; color: red'><?php $clang->eT("Outdated"); ?>: <?php echo $phpVersion; ?></span></b>
<?php } else { ?><?php echo $phpVersion ; ?> <?php } ?></td>
</tr>
<tr>
<td style="width: 209px;"><?php $clang->eT("PHP DBO driver library"); ?></td>
<td align="center" style="width: 225px;"><?php $clang->eT("At least one installed"); ?></td>
<td align="center" style="width: 225px;"><?php if (count($dbtypes)==0) { ?><span style='font-weight:bold; color: red'><?php $clang->eT("None found"); ?></span></b>
<?php } else { ?><?php echo implode(', ',$dbtypes); ?> <?php } ?></td>
</tr>
<tr>
<td style="width: 209px;"><?php $clang->eT("PHP5 mbstring library"); ?></td>
<td align="center" style="width: 225px;"><img src="<?php echo Yii::app()->baseUrl; ?>/installer/images/tick-right.png" alt="Yes" /></td>
Expand Down

0 comments on commit 51baad7

Please sign in to comment.