Skip to content

Commit

Permalink
Merge branch 'hotfix/CanSpecifyFullPath'
Browse files Browse the repository at this point in the history
  • Loading branch information
Taliesin Millhouse committed Sep 10, 2019
2 parents ff6ba4c + 686acb3 commit 0927df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system/modules/admin/admin.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ function admin_core_dbobject_after_insert(Web $w, DbObject $object) {
*/
function admin_core_web_before(Web $w) {
$w->Audit->addAuditLogEntry();
}
}
2 changes: 2 additions & 0 deletions system/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,8 @@ function templateExists($name) {
$paths[] = $this->_templatePath;
// Add system fallback
$paths[] = SYSTEM_PATH . "/" . $this->_templatePath;
// Allow specifying the full path
$paths[] = ROOT_PATH;

$names = array();
if ($name) {
Expand Down

0 comments on commit 0927df8

Please sign in to comment.