@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | private function showJson($obj, $httpHeader = 'HTTP/1.0 200 OK') { |
| 76 | - header($_SERVER['SERVER_PROTOCOL'] . $httpHeader, true); |
|
| 76 | + header($_SERVER['SERVER_PROTOCOL'].$httpHeader, true); |
|
| 77 | 77 | header('Content-type: application/json'); |
| 78 | 78 | die(json_encode($obj)); |
| 79 | 79 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $indexer->replaceOldIndex(); |
| 106 | 106 | $this->showJson('done'); |
| 107 | 107 | } else { |
| 108 | - $this->showJson('Invalid step: ' . $step . '.', 'HTTP/1.0 500 Internal Server Error'); |
|
| 108 | + $this->showJson('Invalid step: '.$step.'.', 'HTTP/1.0 500 Internal Server Error'); |
|
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | \ No newline at end of file |