diff options
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/css.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index ce6a83fea..aa82ba9a2 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -279,6 +279,23 @@ function css_styleini($tpl) { } } + // load template's style.local.ini + // @deprecated 2013-08-03 + $ini = $incbase.'style.local.ini'; + if(file_exists($ini)){ + $data = parse_ini_file($ini, true); + + // stylesheets + if(is_array($data['stylesheets'])) foreach($data['stylesheets'] as $file => $mode){ + $stylesheets[$mode][$incbase.$file] = $webbase; + } + + // replacements + if(is_array($data['replacements'])){ + $replacements = array_merge($replacements, $data['replacements']); + } + } + // load configs's style.ini $incbase = dirname($ini).'/'; $webbase = DOKU_BASE; |