From 568ffd7ef769ecacdf91ac7bdf01dbcedaf8643a Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 3 Aug 2013 16:25:02 +0200
Subject: [PATCH] Readded style.local.ini and deprecated it

---
 lib/exe/css.php | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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;
-- 
GitLab