Skip to content

Commit

Permalink
v1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
optipic-io committed May 5, 2021
1 parent 28486d8 commit 03d9091
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/addons/optipic/ImgUrlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ImgUrlConverter {
/**
* Library version number
*/
const VERSION = '1.14';
const VERSION = '1.15';

/**
* ID of your site on CDN OptiPic.io service
Expand Down Expand Up @@ -448,6 +448,9 @@ public static function getUrlFromRelative($relativeUrl, $baseUrl=false) {
*/
public static function getBaseDirOfUrl($url) {
$urlParsed = parse_url($url);
if(empty($urlParsed['path'])) {
return '/';
}
$urlPath = $urlParsed['path'];
$pathinfo = pathinfo($urlPath);
if(!empty($pathinfo['extension'])) {
Expand Down
2 changes: 1 addition & 1 deletion app/addons/optipic/addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Описание аддона -->
<description>OptiPic.io - image optimization via smart CDN. The module automates the process of optimizing and compressing all images on the site according to the recommendations of Google PageSpeed Insights.</description>
<!-- Версия аддона -->
<version>1.14.0</version>
<version>1.15.0</version>
<!-- Родной язык аддона (по умолчанию). Необязательный параметр; если не указан, то язык будет распознаваться как английский (EN). -->
<default_language>en</default_language>
<!-- Приоритет аддона. Чем выше, тем позже аддон подключается. -->
Expand Down
2 changes: 1 addition & 1 deletion app/addons/optipic/func.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function fn_optipic_settings_field_info() {

$settings = $optipic->getSettings();

$srcJs = 'https://optipic.io/api/cp/stat?domain='.$currentHost.'&sid='.$settings['site_id'].'&cms=cscart&stype=cdn&append_to=%23content_optipic&version=1.14.0';
$srcJs = 'https://optipic.io/api/cp/stat?domain='.$currentHost.'&sid='.$settings['site_id'].'&cms=cscart&stype=cdn&append_to=%23content_optipic&version=1.15.0';

$html = '';

Expand Down

0 comments on commit 03d9091

Please sign in to comment.