summaryrefslogtreecommitdiff
path: root/lib/exe/css.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-03 16:25:02 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-03 16:25:02 +0200
commit568ffd7ef769ecacdf91ac7bdf01dbcedaf8643a (patch)
tree85221d4e123cdc36ed8645efc5b4799bbcd28be8 /lib/exe/css.php
parentafb2c08218345dc3604024c829a5c408e3f39277 (diff)
downloadrpg-568ffd7ef769ecacdf91ac7bdf01dbcedaf8643a.tar.gz
rpg-568ffd7ef769ecacdf91ac7bdf01dbcedaf8643a.tar.bz2
Readded style.local.ini and deprecated it
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r--lib/exe/css.php17
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;