Skip to content

Commit

Permalink
v1.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
optipic-io committed Feb 14, 2022
1 parent 141826a commit f3fd338
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optipic/optipic.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function onAfterRender()
$app->setBody($content);
}
}
elseif($app->isAdmin()) {
elseif($app->isClient('administrator')) {
$bodyHtml = $app->getBody();

$isOptipicSettingsPage = stripos($bodyHtml, 'optipic-plugin-page-detecor-mark')!==false;
Expand All @@ -50,7 +50,7 @@ function onAfterRender()
$uri = JUri::getInstance();
$host = $uri->getHost();

$js = '<script src="https://optipic.io/api/cp/stat?domain='.$host.'&sid='.$sid.'&cms=joomla&stype=cdn&append_to=%23general%3Afirst&version=1.25.0"></script>';
$js = '<script src="https://optipic.io/api/cp/stat?domain='.$host.'&sid='.$sid.'&cms=joomla&stype=cdn&append_to=%23general%3Afirst&version=1.25.1"></script>';

$bodyHtml = str_replace ("</body>", $js." </body>", $bodyHtml);
$app->setBody($bodyHtml);
Expand Down
2 changes: 1 addition & 1 deletion optipic/optipic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later</license>
<authorEmail>info@optipic.io</authorEmail>
<authorUrl>https://optipic.io/cdn/</authorUrl>
<version>1.25.0</version>
<version>1.25.1</version>
<description>PLG_SYSTEM_OPTIPIC_DESC</description>
<files>
<filename plugin="optipic">optipic.php</filename>
Expand Down

0 comments on commit f3fd338

Please sign in to comment.