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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ The following pages can be either html files in the root of the template or a pa

## Include Images

The following images can be used to replace content in the template. Images can be in the root of the template or in the namespace. Images can be either png, jpg, gif or svg.
The following images can be used to replace content in the
template. Images can be in `TEMPLATE_ROOT/images/`,
`TEMPLATE_ROOT/themes/THEME/images/`, or in the namespace. Images can
be either png, jpg, gif or svg.

- `logo` : site logo in the navbar
- `breadcrumb-prefix` breadcrumb prefix
Expand Down
2 changes: 1 addition & 1 deletion mikio.php
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ public function getMediaFile($image, $searchCurrentNS = TRUE, $propagate = TRUE)
$prefix[] = ':wiki:';
}
$theme = $this->getConf('customTheme');
if ($theme != '') $prefix[] = $this->tplDir . 'themes/' . $theme . '/images/';
if ($theme != '') $prefix[] = 'themes/' . $theme . '/images/';
$prefix[] = 'images/';

$search = array();
Expand Down