From 82d15ea8ae46a57d80a9f51e2f8e6318ce0acb76 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Mar 2011 12:26:55 +0000 Subject: [PATCH] New: A module can force theme directory --- htdocs/main.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index d19ff014580..2ede678df4f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -868,7 +868,9 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; // Output style sheets (optioncss='print' or '') - print ''."\n"; + $themepath=dol_buildpath((empty($conf->global->MAIN_FORCETHEMEDIR)?'':$conf->global->MAIN_FORCETHEMEDIR).$conf->css,1); + //print 'themepath='.$themepath;exit; + print ''."\n"; // CSS forced by modules (relative url starting with /) if (is_array($conf->css_modules)) {