diff options
Diffstat (limited to 'lib/tpl/index.php')
-rw-r--r-- | lib/tpl/index.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/tpl/index.php b/lib/tpl/index.php index 357cc1f0d..7cdec9774 100644 --- a/lib/tpl/index.php +++ b/lib/tpl/index.php @@ -43,7 +43,13 @@ require_once(DOKU_INC.'inc/init.php'); </head> <body> <?php -$ini = @parse_ini_file($conf['template'].'/style.ini',true); +$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); + if ($ini) { echo '<table>'; echo "<caption>".htmlspecialchars($conf['template'])."'s style.ini</caption>"; @@ -60,7 +66,7 @@ if ($ini) { } echo '</table>'; } else { - echo "<p>Non-existent template: <strong>".htmlspecialchars($conf['template'])."</strong></p>"; + echo "<p>Non-existent or invalid template or style.ini: <strong>".htmlspecialchars($conf['template'])."</strong></p>"; } ?> </body> |