mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:25:57 +00:00
af_readability: require php 7.0
This commit is contained in:
@@ -29,7 +29,8 @@ class Af_Readability extends Plugin {
|
|||||||
{
|
{
|
||||||
$this->host = $host;
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,8 +52,8 @@ class Af_Readability extends Plugin {
|
|||||||
print "<div dojoType='dijit.layout.AccordionPane'
|
print "<div dojoType='dijit.layout.AccordionPane'
|
||||||
title=\"<i class='material-icons'>extension</i> ".__('Readability settings (af_readability)')."\">";
|
title=\"<i class='material-icons'>extension</i> ".__('Readability settings (af_readability)')."\">";
|
||||||
|
|
||||||
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
|
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
|
||||||
print_error("This plugin requires PHP version 5.6.");
|
print_error("This plugin requires PHP 7.0.");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
print "<h2>" . __("Global settings") . "</h2>";
|
print "<h2>" . __("Global settings") . "</h2>";
|
||||||
@@ -88,7 +89,7 @@ class Af_Readability extends Plugin {
|
|||||||
print "</label>";
|
print "</label>";
|
||||||
print "</fieldset>";
|
print "</fieldset>";
|
||||||
|
|
||||||
print print_button("submit", __("Save"), "class='alt-primary'");
|
print_button("submit", __("Save"), "class='alt-primary'");
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
$enabled_feeds = $this->host->get($this, "enabled_feeds");
|
$enabled_feeds = $this->host->get($this, "enabled_feeds");
|
||||||
|
|||||||
Reference in New Issue
Block a user