-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eed189
commit cb968e0
Showing
5 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage plg_jumobile | ||
* | ||
* @author Denys Nosov, [email protected] | ||
* @copyright 2016-2018 (C) Joomla! Ukraine, https://joomla-ua.org. All rights reserved. | ||
* @copyright 2016-2019 (C) Joomla! Ukraine, https://joomla-ua.org. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
|
@@ -16,7 +16,7 @@ | |
* @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html> | ||
*/ | ||
|
||
defined('_JEXEC') or die('Restricted access'); | ||
defined('_JEXEC') or die; | ||
|
||
jimport('joomla.plugin.plugin'); | ||
jimport('joomla.environment.browser'); | ||
|
@@ -53,14 +53,15 @@ public function __construct(&$subject, $params) | |
* | ||
* @return bool | ||
* | ||
* @throws Exception | ||
* @since 1.0 | ||
*/ | ||
public function onAfterRender() | ||
{ | ||
$app = JFactory::getApplication(); | ||
$params = $this->_params; | ||
|
||
if($app->getName() != 'site') | ||
if($app->getName() !== 'site') | ||
{ | ||
return true; | ||
} | ||
|
@@ -184,14 +185,15 @@ private function get_ip() | |
* | ||
* @return bool | ||
* | ||
* @throws Exception | ||
* @since 1.0 | ||
*/ | ||
public function onAfterInitialise() | ||
{ | ||
$app = JFactory::getApplication(); | ||
$params = $this->_params; | ||
|
||
if($app->getName() != 'site') | ||
if($app->getName() !== 'site') | ||
{ | ||
return true; | ||
} | ||
|
@@ -286,7 +288,7 @@ public function onAfterInitialise() | |
} | ||
} | ||
|
||
if($template > 0 && $template != -1) | ||
if($template > 0 && $template != '-1') | ||
{ | ||
$app->input->set('templateStyle', $template); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<extension version="2.5" type="plugin" group="system" method="upgrade"> | ||
<name>PLG_SYSTEM_JUMOBILE</name> | ||
<creationDate>23.03.2018</creationDate> | ||
<creationDate>03.01.2019</creationDate> | ||
<author>Denys Nosov</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>https://joomla-ua.org</authorUrl> | ||
<version>1.8.4</version> | ||
<version>1.8.5</version> | ||
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license> | ||
<copyright>(C) 2016-2018 Joomla! Ukraine. All rights reserved.</copyright> | ||
<copyright>(C) 2016-2019 Joomla! Ukraine. All rights reserved.</copyright> | ||
<description>PLG_SYSTEM_JUMOBILE_XML_DESCRIPTION</description> | ||
|
||
<files> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.