diff --git a/lib/exe/css.php b/lib/exe/css.php index c1e2744eb34d3de16055eb318f753b52efd75a0e..02425a9904ddcc2d02e683f26293559ceae49de6 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -31,7 +31,7 @@ function css_out(){ global $conf; global $lang; switch ($_REQUEST['s']) { - case 'all': + case 'all': case 'print': case 'feed': $style = $_REQUEST['s']; @@ -147,7 +147,7 @@ function css_cacheok($cache,$files){ } /** - * Does placeholder replacements in the style according to + * Does placeholder replacements in the style according to * the ones defined in a templates style.ini file * * @author Andreas Gohr <andi@splitbrain.org> @@ -245,6 +245,7 @@ function css_loadfile($file,$location=''){ * @author Andreas Gohr <andi@splitbrain.org> */ function css_pluginstyles($mode='screen'){ + global $lang; $list = array(); $plugins = plugin_list(); foreach ($plugins as $p){ @@ -258,6 +259,9 @@ function css_pluginstyles($mode='screen'){ $list[DOKU_PLUGIN."$p/style.css"] = DOKU_BASE."lib/plugins/$p/"; $list[DOKU_PLUGIN."$p/screen.css"] = DOKU_BASE."lib/plugins/$p/"; } + if($lang['direction'] == 'rtl'){ + $list[DOKU_PLUGIN."$p/rtl.css"] = DOKU_BASE."lib/plugins/$p/"; + } } return $list; }