Skip to content

Commit

Permalink
Bugfix order info heading title
Browse files Browse the repository at this point in the history
Bugfix for the admin PayPal event handler order_info_before: This event handler must not modify the main language data, such as the heading title.
  • Loading branch information
mhcwebdesign committed May 31, 2024
1 parent 3f630c6 commit 4d0bccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ public function customer_delete_customer_before($route, &$data) {

public function order_info_before($route, &$data) {
if ($this->config->get('payment_paypal_status') && !empty($this->request->get['order_id'])) {
$this->load->language('extension/payment/paypal');
$this->load->language('extension/payment/paypal','extension_payment_paypal');

$this->load->model('extension/payment/paypal');

Expand All @@ -2103,7 +2103,7 @@ public function order_info_before($route, &$data) {

$data['tabs'][] = array(
'code' => 'paypal',
'title' => $this->language->get('heading_title_main'),
'title' => $this->language->get('extension_payment_paypal')->get('heading_title_main'),
'content' => $this->load->view('extension/payment/paypal/order', $data)
);
}
Expand Down

0 comments on commit 4d0bccb

Please sign in to comment.