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

Fix template path for hook #13

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Roxayl
Copy link

@Roxayl Roxayl commented May 30, 2023

Depending on opendir restrictions, when using absolute paths for templates, the following error may be thrown:

file_exists(): open_basedir restriction in effect. File(/views/templates/hook/displayContentWrapperTop.tpl) is not within the allowed path(s): (/var/webroot:/tmp:/usr/share/php:/usr/share/pear) in /var/webroot/classes/module/Module.php on line 2509

This pull request fixes the PHP warning described above that may arise when fetching a template HTML content.

Tested on PrestaShop 1.7.8.7 and 1.7.8.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants