diff options
author | Andrew Dolgov <[email protected]> | 2019-08-21 14:26:59 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-21 14:26:59 +0300 |
commit | 72af96f69470bfbd4901e6dd2304198af78ac45a (patch) | |
tree | 8fd66536862f941b77e4cdd3e13f64948faf0dc3 | |
parent | 369dd91d365079ee05dbac4fa01437e5d8436a56 (diff) |
rename some form keys so that this plugin would not conflict with stock af_readability
-rw-r--r-- | init.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -49,7 +49,7 @@ class Af_Readability_Legacy extends Plugin { if ($args != "prefFeeds") return; 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_legacy)')."\">"; if (version_compare(PHP_VERSION, '5.6.0', '<')) { print_error("This plugin requires PHP version 5.6."); @@ -126,8 +126,8 @@ class Af_Readability_Legacy extends Plugin { print "<fieldset>"; - print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_enabled' - name='af_readability_enabled' $checked> ".__('Inline article content')."</label>"; + print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='af_readability_legacy_enabled' + name='af_readability_legacy_enabled' $checked> ".__('Inline article content')."</label>"; print "</fieldset>"; @@ -138,7 +138,7 @@ class Af_Readability_Legacy extends Plugin { $enabled_feeds = $this->host->get($this, "enabled_feeds"); if (!is_array($enabled_feeds)) $enabled_feeds = array(); - $enable = checkbox_to_sql_bool($_POST["af_readability_enabled"]); + $enable = checkbox_to_sql_bool($_POST["af_readability_legacy_enabled"]); $key = array_search($feed_id, $enabled_feeds); if ($enable) { |