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

Fixed searching for images in the theme directory #42

Merged
merged 1 commit into from
May 5, 2022

Conversation

cmacmackin
Copy link
Contributor

The way Template->getMediaFile() was written meant that, when looking for media files in the theme directory, it prepended the absolute path of the template directory twice. E.g., it would be looking for a file at /home/username/public_html/lib/tpl/mikio//home/username/public_html/lib/tpl/mikio/themes/themename/images/logo.png rather than simply /home/username/public_html/lib/tpl/mikio/themes/themename/images/logo.png. This pull request fixes that bug. It also clarifies the documentation in the README about where exactly the images can be placed.

I also added a bit to the README documentation to clarify where images
can be placed.
@cmacmackin
Copy link
Contributor Author

Note: the page for this template on the Dokuwiki website should be updated with the revised wording from the README if this PR is accepted.

@nomadjimbob nomadjimbob merged commit 61a859a into nomadjimbob:master May 5, 2022
@nomadjimbob
Copy link
Owner

Thank you for your PR and support. Added to the current release 2022-05-05 as well as updated the Dokuwiki page.

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