diff options
author | Andrew Dolgov <[email protected]> | 2019-08-21 10:05:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-21 10:05:25 +0300 |
commit | e887d68f216b9b8bb59f735aa4701fb28dd11bfd (patch) | |
tree | 61a50e9489fdefcefe9808d111f57da822c7c3d5 | |
parent | 667836ec7cb72be783cc2c0cfa9588398c72c65f (diff) |
af_readability: require php 7.0
-rwxr-xr-x | plugins/af_readability/init.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 7f3c6db4d..b6bc8e95e 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -29,7 +29,8 @@ class Af_Readability extends Plugin { { $this->host = $host; - if (version_compare(PHP_VERSION, '5.6.0', '<')) { + if (version_compare(PHP_VERSION, '7.0.0', '<')) { + user_error("af_readability requires PHP 7.0", E_USER_WARNING); return; } @@ -51,8 +52,8 @@ class Af_Readability extends Plugin { print "<div dojoType='dijit.layout.AccordionPane' title=\"<i class='material-icons'>extension</i> ".__('Readability settings (af_readability)')."\">"; - if (version_compare(PHP_VERSION, '5.6.0', '<')) { - print_error("This plugin requires PHP version 5.6."); + if (version_compare(PHP_VERSION, '7.0.0', '<')) { + print_error("This plugin requires PHP 7.0."); } else { print "<h2>" . __("Global settings") . "</h2>"; @@ -88,7 +89,7 @@ class Af_Readability extends Plugin { print "</label>"; print "</fieldset>"; - print print_button("submit", __("Save"), "class='alt-primary'"); + print_button("submit", __("Save"), "class='alt-primary'"); print "</form>"; $enabled_feeds = $this->host->get($this, "enabled_feeds"); |