Skip to content

Commit

Permalink
Update to 1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdesign committed Jan 5, 2019
1 parent 9eed189 commit cb968e0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 27 deletions.
12 changes: 7 additions & 5 deletions jumobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand All @@ -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');
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -286,7 +288,7 @@ public function onAfterInitialise()
}
}

if($template > 0 && $template != -1)
if($template > 0 && $template != '-1')
{
$app->input->set('templateStyle', $template);
}
Expand Down
6 changes: 3 additions & 3 deletions jumobile.xml
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>
Expand Down
2 changes: 1 addition & 1 deletion language/en-GB.plg_system_jumobile.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUMobile for Joomla! 3.x
; Copyright (C) 2016-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2016-2019 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion language/en-GB.plg_system_jumobile.sys.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUMobile for Joomla! 3.x
; Copyright (C) 2016-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2016-2019 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
Loading

0 comments on commit cb968e0

Please sign in to comment.