Skip to content

Commit

Permalink
Merge branch 'master' into Events-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesallsup committed Jul 17, 2014
2 parents 404e3cb + 46f466d commit 4aee797
Show file tree
Hide file tree
Showing 77 changed files with 150 additions and 187 deletions.
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
4 changes: 2 additions & 2 deletions upload/admin/controller/catalog/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function upload() {
$json['success'] = $this->language->get('text_upload');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -532,7 +532,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/manufacturer.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public function autocomplete() {

array_multisort($sort_order, SORT_ASC, $json);

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ public function autocomplete() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
4 changes: 2 additions & 2 deletions upload/admin/controller/common/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function sale() {
break;
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand All @@ -285,7 +285,7 @@ public function online() {
$json['xaxis'][] = array($time, date('H:i', $time));
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
6 changes: 3 additions & 3 deletions upload/admin/controller/common/filemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function upload() {
$json['success'] = $this->language->get('text_uploaded');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -346,7 +346,7 @@ public function folder() {
$json['success'] = $this->language->get('text_directory');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -428,7 +428,7 @@ public function delete() {
$json['success'] = $this->language->get('text_delete');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
16 changes: 8 additions & 8 deletions upload/admin/controller/extension/installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function upload() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -243,7 +243,7 @@ public function unzip() {
unlink($file);
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -327,7 +327,7 @@ public function ftp() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -372,7 +372,7 @@ public function sql() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -450,7 +450,7 @@ public function xml() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand All @@ -477,7 +477,7 @@ public function php() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -533,7 +533,7 @@ public function remove() {
$json['success'] = $this->language->get('text_success');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -587,7 +587,7 @@ public function clear() {
$json['success'] = $this->language->get('text_clear');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
4 changes: 2 additions & 2 deletions upload/admin/controller/marketing/affiliate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ public function country() {
);
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -1131,7 +1131,7 @@ public function autocomplete() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($affiliate_data));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/marketing/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function send() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
2 changes: 1 addition & 1 deletion upload/admin/controller/payment/amazon_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function uploadOrderAdjustment() {
}
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down
8 changes: 4 additions & 4 deletions upload/admin/controller/payment/bluepay_hosted_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function void() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -346,7 +346,7 @@ public function release() {
$json['msg'] = $this->language->get('error_data_missing');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -403,7 +403,7 @@ public function rebate() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand All @@ -428,7 +428,7 @@ protected function validate() {
}

public function callback() {
$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($this->request->get));
}

Expand Down
8 changes: 4 additions & 4 deletions upload/admin/controller/payment/bluepay_redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function void() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -322,7 +322,7 @@ public function release() {
$json['msg'] = $this->language->get('error_data_missing');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -379,7 +379,7 @@ public function rebate() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand All @@ -400,7 +400,7 @@ protected function validate() {
}

public function callback() {
$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($this->request->get));
}

Expand Down
6 changes: 3 additions & 3 deletions upload/admin/controller/payment/firstdata_remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public function void() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -423,7 +423,7 @@ public function capture() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -480,7 +480,7 @@ public function refund() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down
22 changes: 5 additions & 17 deletions upload/admin/controller/payment/pp_express.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,6 @@ public function index() {
$data['pp_express_logo'] = $this->config->get('pp_express_logo');
}

if (isset($this->request->post['pp_express_border_colour'])) {
$data['pp_express_border_colour'] = str_replace('#', '', $this->request->post['pp_express_border_colour'] );
} else {
$data['pp_express_border_colour'] = $this->config->get('pp_express_border_colour');
}

if (isset($this->request->post['pp_express_header_colour'])) {
$data['pp_express_header_colour'] = str_replace('#', '', $this->request->post['pp_express_header_colour'] );
} else {
$data['pp_express_header_colour'] = $this->config->get('pp_express_header_colour');
}

if (isset($this->request->post['pp_express_page_colour'])) {
$data['pp_express_page_colour'] = str_replace('#', '', $this->request->post['pp_express_page_colour'] );
} else {
Expand Down Expand Up @@ -400,7 +388,7 @@ public function resend() {
$json['error'] = $this->language->get('error_data');
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -520,7 +508,7 @@ public function capture() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -573,7 +561,7 @@ public function void() {
$json['msg'] = 'Missing data';
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}

Expand Down Expand Up @@ -1002,12 +990,12 @@ public function doSearch() {
$response['error_msg'] = $result['L_LONGMESSAGE0'];
}

$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($response));
} else {
$response['error'] = true;
$response['error_msg'] = 'Enter a start date';
$this->response->setContentType('Content-Type: application/json');
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($response));
}
}
Expand Down
Loading

0 comments on commit 4aee797

Please sign in to comment.