summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-01-01 05:49:02 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-01 05:58:42 +0100
commit00d8709ae8edcac15ca7cfb01ffb60e8165f9132 (patch)
tree0ecafdaff5d64022bf1d954795fb792d08479421 /public/index.php
parentb8ebd23f6df8317a2b091335640ddd89de8cc55b (diff)
Fix relative paths
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 7bf9b169..85e5b4da 100644
--- a/public/index.php
+++ b/public/index.php
@@ -162,7 +162,7 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i
$event_config = EventConfig();
-echo template_render('../templates/layout.html', [
+echo template_render(__DIR__ . '/../templates/layout.html', [
'theme' => isset($user) ? $user['color'] : $default_theme,
'title' => $title,
'atom_link' => ($page == 'news' || $page == 'user_meetings') ? '<link href="' . page_link_to('atom') . (($page == 'user_meetings') ? '&amp;meetings=1' : '') . '&amp;key=' . $user['api_key'] . '" type="application/atom+xml" rel="alternate" title="Atom Feed">' : '',