Skip to content

Commit

Permalink
поправил триггер скачивания
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriitux committed Jun 7, 2023
1 parent b8f64b9 commit bdfbca0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions installer/sovmart.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ public function onInstallerBeforePackageDownload(&$url, &$headers)
)
{
$headers['Authorization'] = 'Bearer ' . $token;
}

$version = (new Version)->getShortVersion();
$version = (new Version)->getShortVersion();

$url .= (strpos('?', $url) === false ? '?' : '&') . http_build_query([
'targetplatform' => 'joomla',
'targetversion' => $version,
]);
$url .= (strpos('?', $url) === false ? '?' : '&') . http_build_query([
'targetplatform' => 'joomla',
'targetversion' => $version,
]);
}

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion installer/sovmart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 3; see LICENSE.txt</license>
<authorEmail>cymbal@delo-design.ru</authorEmail>
<authorUrl>https://delo-design.ru</authorUrl>
<version>1.6.5</version>
<version>1.6.6</version>
<description>PLG_INSTALLER_SOVMART_PLUGIN_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>

Expand Down
2 changes: 1 addition & 1 deletion pkg_sovmart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<license>GNU General Public License version 3; see LICENSE.txt</license>
<authorEmail>cymbal@delo-design.ru</authorEmail>
<authorUrl>https://delo-deisgn.ru</authorUrl>
<version>1.6.5</version>
<version>1.6.6</version>
<scriptfile>script.php</scriptfile>
<description>PKG_SOVMART_XML_DESCRIPTION</description>
<languages folder="language">
Expand Down

0 comments on commit bdfbca0

Please sign in to comment.