aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/template.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/template.class.php b/include/template.class.php
index e7ab39b8d..614bcb888 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -173,6 +173,15 @@ class Template {
/* For test purpose: Do advanced users need a php access? */
// $localphp = '../.' . substr($localtpl,0,-3).'php';
// if (file_exists($localphp)) @include_once($localphp);
+
+ /* Does it have a samename.css available */
+ $localcss = substr($localtpl,0,-3).'css';
+ if (file_exists($localcss))
+ {
+ $this->html_head_elements[] =
+ '<link rel="stylesheet" type="text/css" href="'
+ . substr($localcss, 2) . '">';
+ }
}
}
}