--- framework/Horde.php 2005-06-01 16:28:10.000000000 +0430 +++ framework-changed/Horde.php 2005-06-01 18:08:11.292873736 +0430 @@ -1046,6 +1046,9 @@ function stylesheetLink($apps = null, $theme = '', $inherit = true) { if ($theme !== false && empty($theme)) { + if (!empty($GLOBALS['nls']['rtl'][$GLOBALS['language']]) && $GLOBALS['prefs']->isDefault('theme')) { + $GLOBALS['prefs']->setValue('theme', 'rtl'); + } $theme = $GLOBALS['prefs']->getValue('theme'); }