Skip to content

Commit

Permalink
Fix template includes in admin/changelog.php
Browse files Browse the repository at this point in the history
This error was introduced when we rearranged the admin directories in
50e7fb6. The reference to `changelog_view.php` should not have
been modified to include `admin/`, because it is not an admin page.

The previous ambiguity was the result of having template location
fallbacks in `Template::getTemplateLocation`.
  • Loading branch information
hemberger committed May 17, 2022
1 parent 612f1c8 commit fc11dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/Default/engine/Default/admin/changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
return;
}

$this->includeTemplate('admin/changelog_view.php', ['Versions' => [$FirstVersion]]); ?>
$this->includeTemplate('changelog_view.php', ['Versions' => [$FirstVersion]]); ?>

<ul>
<li>
Expand Down Expand Up @@ -37,4 +37,4 @@
</ul>

<?php
$this->includeTemplate('admin/changelog_view.php'); ?>
$this->includeTemplate('changelog_view.php'); ?>

0 comments on commit fc11dcd

Please sign in to comment.