Skip to content

Commit

Permalink
1.0.0 (#2)
Browse files Browse the repository at this point in the history
* Fix component check
* Add update server [close #1]
  • Loading branch information
Septdir authored Aug 27, 2021
1 parent 31fac73 commit f63bea8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion language/en-GB/en-GB.plg_authentication_radicalmart.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; @package RadicalMart Package
; @subpackage plg_authentication_radicalmart
; @version 0.2.0
; @version 1.0.0
; @author Delo Design - delo-design.ru
; @copyright Copyright (c) 2021 Delo Design. All rights reserved.
; @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; @package RadicalMart Package
; @subpackage plg_authentication_radicalmart
; @version 0.2.0
; @version 1.0.0
; @author Delo Design - delo-design.ru
; @copyright Copyright (c) 2021 Delo Design. All rights reserved.
; @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down
2 changes: 1 addition & 1 deletion language/ru-RU/ru-RU.plg_authentication_radicalmart.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; @package RadicalMart Package
; @subpackage plg_authentication_radicalmart
; @version 0.2.0
; @version 1.0.0
; @author Delo Design - delo-design.ru
; @copyright Copyright (c) 2021 Delo Design. All rights reserved.
; @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; @package RadicalMart Package
; @subpackage plg_authentication_radicalmart
; @version 0.2.0
; @version 1.0.0
; @author Delo Design - delo-design.ru
; @copyright Copyright (c) 2021 Delo Design. All rights reserved.
; @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down
6 changes: 2 additions & 4 deletions radicalmart.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* @package RadicalMart Express Package
* @subpackage plg_button_radicalmart_express
* @version 0.2.0
* @version 1.0.0
* @author Delo Design - delo-design.ru
* @copyright Copyright (c) 2021 Delo Design. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down Expand Up @@ -68,7 +68,7 @@ public function onUserAuthenticate(&$credentials, $options, &$response)

try
{
if (ComponentHelper::getComponent('com_radicalmart_express'))
if (!empty(ComponentHelper::getComponent('com_radicalmart_express')->id))
{
JLoader::register('RadicalMartHelperUser',
JPATH_ADMINISTRATOR . '/components/com_radicalmart_express/helpers/user.php');
Expand All @@ -84,8 +84,6 @@ public function onUserAuthenticate(&$credentials, $options, &$response)
}

// Prepare data
JLoader::register('RadicalMartHelperUser',
JPATH_ADMINISTRATOR . '/components/com_radicalmart_express/helpers/user.php');
$data = array(
'username' => $credentials['username'],
'email' => $credentials['username'],
Expand Down
7 changes: 6 additions & 1 deletion radicalmart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>https://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>boss@delo-design.ru</authorEmail>
<authorUrl>https://delo-design.ru</authorUrl>
<version>0.2.0</version>
<version>1.0.0</version>
<description>PLG_AUTHENTICATION_RADICALMART_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>
<languages folder="language">
Expand All @@ -19,4 +19,9 @@
<files>
<filename plugin="radicalmart">radicalmart.php</filename>
</files>
<updateservers>
<server type="extension" priority="1" name="RadicalMart - Authentication">
https://radicalmart.ru/update?element=plg_authentication_radicalmart
</server>
</updateservers>
</extension>
2 changes: 1 addition & 1 deletion script.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* @package RadicalMart Package
* @subpackage plg_pagecache_radicalmart
* @version 0.2.0
* @version 1.0.0
* @author Delo Design - delo-design.ru
* @copyright Copyright (c) 2021 Delo Design. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
Expand Down

0 comments on commit f63bea8

Please sign in to comment.