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

logo.png not defaulting like it should #56

Open
RyanisLink opened this issue Jun 23, 2021 · 3 comments
Open

logo.png not defaulting like it should #56

RyanisLink opened this issue Jun 23, 2021 · 3 comments

Comments

@RyanisLink
Copy link

For some reason the template defaults to logo.svg instead of logo.png and I am unable to use the media manager by default to change the logo as I would in the default template since logo.svg does not exist there. If this is not a bug, then can it be a feature request?

@RyanisLink
Copy link
Author

After doing a little more digging it appears that in the main.php file it shows logo.svg which is what is showing in the template, however, when trying to add another logo.svg to the media gallery I am told that .svg files are not supported. I do not have access to the root files (i am working on getting the host to help) but I think that changing logo.svg to logo.png in the main.php file may resolve this issue, no? will it know to pick up logo.png out of the media gallery like the original dokuwiki template does?

@LeonStaufer
Copy link
Owner

Hey, thanks for opening this issue. That does sound like a bug with how the logo is choosen.

Unfortunately I don't have the time right now to research and fix the issue. You are welcome to submit a pull request that I'll look over and merge.

@LeonStaufer
Copy link
Owner

LeonStaufer commented Jun 25, 2021

I believe simply adding logo.png to the following list might resolve the issue.

<span class="mdl-logo"><?php tpl_link(wl(), '<img src="' . tpl_getMediaFile(array(':wiki:logo.svg', ':logo.svg', 'images/logo.svg')) . '" alt="' . $conf['title'] . '" />', 'accesskey="h" title="[H]"'); ?></span>

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

No branches or pull requests

2 participants