summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-01-01 16:26:43 +0100
committerGitHub <noreply@github.com>2017-01-01 16:26:43 +0100
commita8ab9ccce10fb476dc480de40a49b513f5d505de (patch)
tree379e5142bcedd62000bc11a56f388d618db6c819 /public/index.php
parent22e0c481bde4227ce0d2adc648145b0fd1aa7845 (diff)
parentf894ca5fa4646683efd3b9e0c540e820e1d24e77 (diff)
Merge pull request #305 from MyIgel/real-path
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">' : '',