Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #37 from maximebiloe/ps_conditions-option
Browse files Browse the repository at this point in the history
Take PS_CONDITIONS configuration into consideration
  • Loading branch information
aleeks authored Mar 17, 2017
2 parents 60cbfb7 + 437b24a commit 15024c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ps_legalcompliance.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ public function hookTermsAndConditions($param)
$cms_page_conditions_associated = $cms_role_repository->findOneByName(self::LEGAL_CONDITIONS);
$cms_page_revocation_associated = $cms_role_repository->findOneByName(self::LEGAL_REVOCATION);

if ((int) $cms_page_conditions_associated->id_cms > 0 && (int) $cms_page_revocation_associated->id_cms > 0) {
if (Configuration::get('PS_CONDITIONS') && (int) $cms_page_conditions_associated->id_cms > 0 && (int) $cms_page_revocation_associated->id_cms > 0) {
$cms_conditions = $cms_repository->i10nFindOneById((int) $cms_page_conditions_associated->id_cms,
(int) $this->context->language->id,
(int) $this->context->shop->id);
Expand Down

0 comments on commit 15024c6

Please sign in to comment.