Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid warning open_basedir restriction #829

Merged
merged 1 commit into from
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions ps_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public function uninstallTabs()
*/
public function hookDisplayPersonalInformationTop()
{
return $this->display(__FILE__, '/views/templates/hook/displayPersonalInformationTop.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayPersonalInformationTop.tpl');
}

/**
Expand Down Expand Up @@ -483,7 +483,7 @@ public function hookDisplayExpressCheckout()
'payIn4XisOrderPageEnabled' => $payIn4XService->isOrderPageEnabled(),
]);

return $this->display(__FILE__, '/views/templates/hook/displayExpressCheckout.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayExpressCheckout.tpl');
}

/**
Expand Down Expand Up @@ -537,15 +537,15 @@ public function hookDisplayProductAdditionalInfo()
'paymentOptions' => $paymentOptions,
]);

return $this->display(__FILE__, '/views/templates/hook/displayProductAdditionalInfo.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayProductAdditionalInfo.tpl');
}

/**
* Express checkout on the product page
*/
public function hookDisplayFooterProduct()
{
return $this->display(__FILE__, '/views/templates/hook/displayFooterProduct.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayFooterProduct.tpl');
}

/**
Expand Down Expand Up @@ -574,7 +574,7 @@ public function hookDisplayProductPriceBlock(array $params)
'payIn4XisProductPageEnabled' => $payIn4XService->isProductPageEnabled(),
]);

return $this->display(__FILE__, '/views/templates/hook/displayProductPriceBlock.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayProductPriceBlock.tpl');
}

/**
Expand All @@ -598,7 +598,7 @@ public function hookDisplayCartTotalPriceLabel($params)
'payIn4XisOrderPageEnabled' => $payIn4XService->isOrderPageEnabled(),
]);

return $this->display(__FILE__, '/views/templates/hook/displayCartTotalPriceLabel.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayCartTotalPriceLabel.tpl');
}

public function getContent()
Expand Down Expand Up @@ -629,7 +629,7 @@ public function getContent()
false
);

return $this->display(__FILE__, '/views/templates/admin/configuration.tpl');
return $this->display(__FILE__, 'views/templates/admin/configuration.tpl');
}

/**
Expand Down Expand Up @@ -750,7 +750,7 @@ public function hookDisplayPayment()
'warningTranslatedText' => $this->l('Warning'),
]);

return $this->display(__FILE__, '/views/templates/hook/displayPayment.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayPayment.tpl');
}

/**
Expand Down Expand Up @@ -820,7 +820,7 @@ public function hookDisplayOrderConfirmation(array $params)
'isAuthorized' => 'AUTHORIZE' === Configuration::get('PS_CHECKOUT_INTENT'),
]);

return $this->display(__FILE__, '/views/templates/hook/displayOrderConfirmation.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayOrderConfirmation.tpl');
}

/**
Expand Down Expand Up @@ -1353,7 +1353,7 @@ public function hookDisplayAdminOrderLeft(array $params)
'orderPayPalBaseUrl' => $this->context->link->getAdminLink('AdminAjaxPrestashopCheckout'),
]);

return $this->display(__FILE__, '/views/templates/hook/displayAdminOrderLeft.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayAdminOrderLeft.tpl');
}

/**
Expand All @@ -1378,7 +1378,7 @@ public function hookDisplayAdminOrderMainBottom(array $params)
'orderPayPalBaseUrl' => $this->context->link->getAdminLink('AdminAjaxPrestashopCheckout'),
]);

return $this->display(__FILE__, '/views/templates/hook/displayAdminOrderMainBottom.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayAdminOrderMainBottom.tpl');
}

/**
Expand Down Expand Up @@ -1423,7 +1423,7 @@ public function hookDisplayPaymentTop()
'warningTranslatedText' => $this->l('Warning'),
]);

return $this->display(__FILE__, '/views/templates/hook/displayPaymentTop.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayPaymentTop.tpl');
}

/**
Expand Down Expand Up @@ -1473,7 +1473,7 @@ public function hookDisplayPaymentByBinaries(array $params)
'paymentOptions' => $paymentOptions,
]);

return $this->display(__FILE__, '/views/templates/hook/displayPaymentByBinaries.tpl');
return $this->display(__FILE__, 'views/templates/hook/displayPaymentByBinaries.tpl');
}

/**
Expand Down Expand Up @@ -1622,7 +1622,7 @@ public function hookHeader()
],
]);

return $this->display(__FILE__, '/views/templates/hook/header.tpl');
return $this->display(__FILE__, 'views/templates/hook/header.tpl');
}

/**
Expand Down