Skip to content

Commit 92c23f5

Browse files
committed
Fix update reporting issue with October 1.0
1 parent 09d9cb0 commit 92c23f5

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

classes/UpdateManager.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
use Http;
88
use Lang;
99
use October\Rain\Filesystem\Zip;
10+
use Request;
1011
use System\Models\Parameter;
1112
use System\Models\PluginVersion;
1213
use Url;
1314

1415
/**
1516
* Override \System\Classes\UpdateManager
16-
* to properly report extension update for OCMS version <472
17-
* Gateway use protocol_version 1.2
17+
* to properly report extension update for OCMS version <1.0.475
18+
* Gateway use protocol_version 1.3
1819
*
1920
* to allow plugin updates ( requestServerFile, extractPlugin )
2021
*/
@@ -37,12 +38,13 @@ protected function applyHttpAttributes($http, $postData)
3738
return;
3839
}
3940

40-
$postData['protocol_version'] = '1.2';
41-
$postData['client'] = 'october';
41+
$postData['protocol_version'] = '1.3';
42+
$postData['client'] = 'October CMS';
4243

4344
$postData['server'] = base64_encode(json_encode([
4445
'php' => PHP_VERSION,
4546
'url' => Url::to('/'),
47+
'ip' => Request::ip(),
4648
'since' => PluginVersion::orderBy('created_at')->value('created_at'),
4749
]));
4850

updates/version.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
- Avoid exception when plugins details can't be fetched from October CMS market
2525
1.2.0:
2626
- Add possibility to update October v2 (plugins & core) from 1Pilot
27+
1.2.1:
28+
- Fix update reporting issue with October 1.0

0 commit comments

Comments
 (0)