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

Template paths are evaluated in the wrong order #10

Open
garfieldius opened this issue Mar 19, 2021 · 0 comments
Open

Template paths are evaluated in the wrong order #10

garfieldius opened this issue Mar 19, 2021 · 0 comments

Comments

@garfieldius
Copy link

Method \Extcode\TCPDF\Service\TsTCPDF::getStandaloneView, line 234, iterates over the configured templateRootPaths settings. Because the paths are sorted descending by key, a configured override comes first, the default last, resetting the template path of the override. In effect, the templates are evaluated the other way around, than extbase/fluid do by default.

The method should use an array_reverse call on the templateRootPaths setting or break out of the loop on the first found template.

garfieldius added a commit to supseven-at/tcpdf that referenced this issue Mar 20, 2021
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

No branches or pull requests

1 participant