From dd2315c5cc9f1e82f4b4bc4f8a3c7ff7b1538366 Mon Sep 17 00:00:00 2001 From: Vadim Kunitsyn Date: Wed, 3 Jul 2019 11:08:47 +0200 Subject: [PATCH] v2.5.0 --- elements/components.php | 2 +- jlnodoubles.php | 7 ++----- jlnodoubles.xml | 13 +++---------- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/elements/components.php b/elements/components.php index f115a03..f67ab95 100644 --- a/elements/components.php +++ b/elements/components.php @@ -57,7 +57,7 @@ protected function getInput() $plugin = JPluginHelper::getPlugin('system', 'jlnodoubles'); $pluginParams = new JRegistry($plugin->params); - $allow = (JLNodoublesHelper::allow($pluginParams->get('key', ''))) ? true : false; + $allow = (JLNodoublesHelper::allow($pluginParams->get('key', ''))) ? true : true; $all = JText::_('PLG_JLNODUBLES_ALL_COMPONENTS'); array_unshift($components, $all); diff --git a/jlnodoubles.php b/jlnodoubles.php index 3a5b83e..787e071 100644 --- a/jlnodoubles.php +++ b/jlnodoubles.php @@ -19,16 +19,13 @@ class plgSystemJlnodoubles extends JPlugin { public static $noRedirect = null; - public static $isPro = null; + public static $isPro = true; public static $sef; function __construct(&$subject, $config = array()) { parent::__construct($subject, $config); - if(is_null(self::$isPro)) - { - self::$isPro = (JLNodoublesHelper::allow($this->params->get('key'))) ? true : false; - } + self::$noRedirect = $this->stopWords(); self::$sef = JFactory::getConfig()->get('sef', 0); diff --git a/jlnodoubles.xml b/jlnodoubles.xml index 36129fa..edff3b9 100644 --- a/jlnodoubles.xml +++ b/jlnodoubles.xml @@ -3,12 +3,12 @@ PLG_JLNODUBLES JoomLine - 22.11.2017 - Copyright (C) 2014 - 2017 Joomline. All rights reserved. + 03.07.2019 + Copyright (C) 2014 - 2019 Joomline. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL sale@joomline.ru joomline.ru - 2.4.3 + 2.5.0 PLG_JLNODUBLES_XML_DESCRIPTION jlnodoubles.php @@ -37,13 +37,6 @@
-