Merge pull request #3037 from petehalverson/develop

Edge support for `october:util set build`
This commit is contained in:
Samuel Georges 2017-08-16 09:12:07 +10:00 committed by GitHub
commit fec397d365
1 changed files with 7 additions and 1 deletions

View File

@ -364,7 +364,13 @@ class UpdateManager
*/
public function setBuildNumberManually()
{
$result = $this->requestServerData('ping');
$postData = [];
if (Config::get('cms.edgeUpdates', false)) {
$postData['edge'] = 1;
}
$result = $this->requestServerData('ping', $postData);
$build = (int) array_get($result, 'pong', 420);