Skip to content

Commit

Permalink
Require a specific version of the Zend Framework
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Nov 11, 2014
1 parent b26e585 commit 79c2758
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/setup/library/Setup/WebWizard.php
Expand Up @@ -5,6 +5,7 @@
namespace Icinga\Module\Setup;

use PDOException;
use Zend_Version;
use Icinga\Web\Form;
use Icinga\Web\Wizard;
use Icinga\Web\Request;
Expand Down Expand Up @@ -386,6 +387,20 @@ public function getRequirements()
sprintf(mt('setup', 'You are running PHP version %s.'), $phpVersion)
);

// The only reason for requiring 1.12.2 is a bug in Zend_Form_Decorator_ViewHelper in older versions causing a
// Zend_Form_Element_Button's value not being rendered. Feel free to adjust this in case we require an earlier
// version!
$zendVersion = Zend_Version::VERSION;
$requirements->addMandatory(
mt('setup', 'Zend Framework 1'),
mt(
'setup',
'Icinga Web 2 requires at least Zend Framework 1.12.2 to work properly.'
),
Zend_Version::compareVersion('1.12.2') !== 1,
sprintf(mt('setup', 'You have got Zend Framwork %s installed.'), $zendVersion)
);

$defaultTimezone = Platform::getPhpConfig('date.timezone');
$requirements->addMandatory(
mt('setup', 'Default Timezone'),
Expand Down

0 comments on commit 79c2758

Please sign in to comment.