diff options
author | nashe <contact@nashe.fr> | 2015-08-05 16:02:38 +0200 |
---|---|---|
committer | nashe <contact@nashe.fr> | 2015-08-05 16:02:38 +0200 |
commit | ba64547b3ef2f536434f8f6864e0179a11e4792b (patch) | |
tree | 0fec8736ef60df7d75ae52cb836651ea88d0eda4 | |
parent | bff9045d3f8c0aa144d43d96ef9f477e2fbca284 (diff) | |
download | planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.gz planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.bz2 planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.xz planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.zip |
Change PHP version requirement
Require at least PHP 5.4: this is the oldest "old stable" version of
PHP that can be downloaded.
-rw-r--r-- | README.markdown | 9 | ||||
-rw-r--r-- | composer.json | 1 | ||||
-rwxr-xr-x | install.php | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/README.markdown b/README.markdown index 6928d26..0e926ad 100644 --- a/README.markdown +++ b/README.markdown @@ -3,16 +3,15 @@ moonmoon [http://moonmoon.org/](http://moonmoon.org/) -Moonmoon is a web based aggregator similar to planetplanet. +Moonmoon is a web based aggregator similar to planetplanet. It can be used to blend articles from different blogs with same interests into a single page. -Moonmoon is stupidly simple: it only aggregates feeds and spits them out in one single page. +Moonmoon is stupidly simple: it only aggregates feeds and spits them out in one single page. It does not archive articles, it does not do comments nor votes. Requirements ------------ -Web hosting with PHP5.3 (PHP4 & 5.2 will not work). - +Web hosting with at least PHP5.4 (PHP4 & 5.2, 5.3 will not work). Installing ---------- @@ -45,4 +44,4 @@ categories: # only list posts that have one # of these (tag or category) ``` ----
\ No newline at end of file +--- diff --git a/composer.json b/composer.json index aad9437..f0c9921 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,7 @@ "minimum-stability": "dev", "require": { "simplepie/simplepie": "1.3.1", + "php": ">= 5.4", "mustangostang/spyc": "0.5.1" } } diff --git a/install.php b/install.php index 3a3eae7..addf819 100755 --- a/install.php +++ b/install.php @@ -40,12 +40,12 @@ if (file_exists(dirname(__FILE__) . '/custom/config.yml') } else { // We start by malking sure we have PHP5 as a base requirement - if(phpversion() >= 5) { - $strInstall = installStatus('Server is running PHP5', 'OK',true); + if(version_compare(PHP_VERSION, '5.4.0') >= 0) { + $strInstall = installStatus('Server is running at least PHP 5.4', 'OK',true); $strRecommendation = ''; } else { - $strInstall = installStatus('Server is running PHP5', 'FAIL',false); - $strRecommendation = '<li>Check your server documentation to activate PHP5</li>'; + $strInstall = installStatus('Server is running at least PHP 5.4', 'FAIL',false); + $strRecommendation = '<li>Check your server documentation to activate at least PHP 5.4</li>'; } // Writable file requirements |