From 7c96e92f0ca5a86b89ff1e7eb72cdde27cf1b57c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 2 Mar 2006 15:36:43 +0100 Subject: load spellchecker styles only when needed fixes #539 darcs-hash:20060302143643-6e07b-ff99705142a057d0c53b1b6b5c5e2cfc73ff8902.gz --- lib/exe/css.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/exe/css.php') diff --git a/lib/exe/css.php b/lib/exe/css.php index 715d32885..061df662d 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -55,6 +55,9 @@ function css_out(){ $files[DOKU_CONF.'userprint.css'] = ''; }else{ $files[DOKU_INC.'lib/styles/style.css'] = DOKU_BASE.'lib/styles/'; + if($conf['spellchecker']){ + $files[DOKU_INC.'lib/styles/spellcheck.css'] = DOKU_BASE.'lib/styles/'; + } if (isset($tplstyles['screen'])) $files = array_merge($files, $tplstyles['screen']); if($lang['direction'] == 'rtl'){ if (isset($tplstyles['rtl'])) $files = array_merge($files, $tplstyles['rtl']); -- cgit v1.2.3