|
@@ -133,7 +133,7 @@ discard block |
|
|
block discarded – undo |
|
133
|
133
|
protected function getUpdateStatus($ID) { |
|
134
|
134
|
$ping = DNGitFetch::get()->byID($ID); |
|
135
|
135
|
if(!$ping) { |
|
136
|
|
- return $this->getAPIResponse(['message' => 'GIT update ('. $ID . ') not found'], 404); |
|
|
136
|
+ return $this->getAPIResponse(['message' => 'GIT update ('.$ID.') not found'], 404); |
|
137
|
137
|
} |
|
138
|
138
|
$output = [ |
|
139
|
139
|
'id' => $ID, |
|
@@ -154,7 +154,7 @@ discard block |
|
|
block discarded – undo |
|
154
|
154
|
$fetch->write(); |
|
155
|
155
|
$fetch->start(); |
|
156
|
156
|
|
|
157
|
|
- $location = Director::absoluteBaseURL() . $this->Link() . '/update/' . $fetch->ID; |
|
|
157
|
+ $location = Director::absoluteBaseURL().$this->Link().'/update/'.$fetch->ID; |
|
158
|
158
|
$output = array( |
|
159
|
159
|
'message' => 'git fetch has been queued', |
|
160
|
160
|
'id' => $fetch->ID, |
Please login to merge, or discard this patch.