From e887d68f216b9b8bb59f735aa4701fb28dd11bfd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Aug 2019 10:05:25 +0300 Subject: [PATCH] af_readability: require php 7.0 --- plugins/af_readability/init.php | 9 +++++---- 1 file 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 "
extension ".__('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 "

" . __("Global settings") . "

"; @@ -88,7 +89,7 @@ class Af_Readability extends Plugin { print ""; print ""; - print print_button("submit", __("Save"), "class='alt-primary'"); + print_button("submit", __("Save"), "class='alt-primary'"); print ""; $enabled_feeds = $this->host->get($this, "enabled_feeds");