Skip to content

Commit

Permalink
remove module versions from dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
litespeedtech committed Nov 2, 2018
1 parent 94970d6 commit c0db51a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Block/Backend/Cache/Management.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getCacheStatistics()
$base = $this->getUrl();
if ((stripos($base, 'http') !== false) && ($pos = strpos($base, '://'))) {
$pos2 = strpos($base, '/', $pos+ 4);
if ($pos === false) {
if ($pos2 === false) {
$statBase = $base;
}
else {
Expand All @@ -99,7 +99,7 @@ public function getCacheStatistics()
$client->setOption(CURLOPT_SSL_VERIFYPEER, 0);
$client->get($statUri) ;
$data = trim($client->getBody());
if ($data{0} !== '{') {
if ($data == '' || $data{0} !== '{') {
return null;
}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "litespeed/module-litemage",
"description": "LiteMage Full Page Cache for LiteSpeed Web Server",
"require": {
"php": "~5.6.0|~7.0.6|~7.1.0",
"magento/module-page-cache": "100.0.*|100.1.*|100.2.*",
"magento/framework": "100.0.*|100.1.*|100.2.*|101.0.*"
"php": "~5.6.0|~7.0.6|~7.1.0|~7.2.0",
"magento/module-page-cache": "*",
"magento/framework": "*"
},
"type": "magento2-module",
"version": "2.0.8",
"version": "2.0.9",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Litespeed_Litemage" setup_version="2.0.8">
<module name="Litespeed_Litemage" setup_version="2.0.9">
<sequence>
<module name="Magento_PageCache"/>
</sequence>
Expand Down

0 comments on commit c0db51a

Please sign in to comment.