summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tpl/index.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/tpl/index.php b/lib/tpl/index.php
index 7cdec9774..3c00ab8e8 100644
--- a/lib/tpl/index.php
+++ b/lib/tpl/index.php
@@ -43,12 +43,10 @@ require_once(DOKU_INC.'inc/init.php');
</head>
<body>
<?php
-$styleini = '';
-if(@file_exists($conf['template'].'/style.local.ini'))
- $styleini = $conf['template'].'/style.local.ini';
-else if(@file_exists($conf['template'].'/style.ini'))
- $styleini = $conf['template'].'/style.ini';
-$ini = @parse_ini_file($styleini, true);
+// get merged style.ini
+define('SIMPLE_TEST', true); // hack to prevent css output and headers
+require_once(DOKU_INC.'lib/exe/css.php');
+$ini = css_styleini(tpl_incdir());
if ($ini) {
echo '<table>';