Skip to content

Commit

Permalink
Moved the function to template for relevance.
Browse files Browse the repository at this point in the history
  • Loading branch information
k10blogger committed Sep 27, 2020
1 parent 9a78ebb commit 68d6bf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions include/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,14 @@ function renderTemplate($view) {
function executePlainPhpTemplate($vars) {
require_once $vars['templateentrypoint'];
}

// {{{ renderTemplateNoRepo

function renderTemplateNoRepo($view)
{
http_response_code(404);
renderTemplate($view);
exit(0);
}

// }}}
11 changes: 0 additions & 11 deletions include/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,15 +419,4 @@ function tempnamWithCheck($dir, $prefix) {
return $tmp;
}

// }}}

// {{{ renderTemplateNoRepo

function renderTemplateNoRepo($view)
{
http_response_code(404);
renderTemplate($view);
exit(0);
}

// }}}

0 comments on commit 68d6bf5

Please sign in to comment.