aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-05 18:15:07 -0700
committerredmatrix <git@macgirvin.com>2016-05-05 18:15:07 -0700
commit2e3da0cbbbb753c8910e96a907cd031e5d95f7c2 (patch)
treea8cec92c45a7d341e4e99378c13876daa2795371 /Zotlabs
parent8ffdc4859baa9f2ae9567a4c443dfbb227919167 (diff)
downloadvolse-hubzilla-2e3da0cbbbb753c8910e96a907cd031e5d95f7c2.tar.gz
volse-hubzilla-2e3da0cbbbb753c8910e96a907cd031e5d95f7c2.tar.bz2
volse-hubzilla-2e3da0cbbbb753c8910e96a907cd031e5d95f7c2.zip
- Setup: check php version (5.4 required)
- Comanche: implement conditionals. Currently the only supported tests are true/false for system config settings and supports the following forms: [if $config.system.foo] [widget=widget1][/widget] [else] [widget=widget2][/widget] [/if] [if $config.system.foo] [widget=widget1][/widget] [/if]
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Setup.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php
index 3ac67e1c0..f8c14951b 100644
--- a/Zotlabs/Module/Setup.php
+++ b/Zotlabs/Module/Setup.php
@@ -407,6 +407,11 @@ class Setup extends \Zotlabs\Web\Controller {
function check_php(&$phpath, &$checks) {
$help = '';
+ if(version_compare(PHP_VERSION, '5.4') < 0) {
+ $help .= t('PHP version 5.4 or greater is required.');
+ $this->check_add($checks, t('PHP version'), false, false, $help);
+ }
+
if (strlen($phpath)) {
$passed = file_exists($phpath);
} else {