Version 1.2 ()
------------------------------------------------------------------------
+ * Add proper charset to CSS stylesheet. Thanks to SADtg
+ (garvinhicking)
+
* Strip tags from comments also in RSS-Feeds for comments, thanks to
tmix from the forums (garvinhicking)
define('IN_CSS', true);
session_cache_limiter('public');
-include_once('serendipity_config.inc.php');
+if (!defined('S9Y_FRAMEWORK')) {
+ include('serendipity_config.inc.php');
+}
if (!isset($css_mode)) {
if (!empty($serendipity['GET']['css_mode'])) {
function serendipity_printStylesheet($file, $dir = '') {
global $serendipity;
- return str_replace(
+ return "/* $dir */\n" . str_replace(
array(
'{TEMPLATE_PATH}',
'{LANG_DIRECTION}'
header('Pragma:');
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()+3600));
}
-header('Content-type: text/css');
+header('Content-type: text/css; charset=' . LANG_CHARSET);
if (IS_installed === false) {
if (file_exists(S9Y_INCLUDE_PATH . 'templates/' . $serendipity['defaultTemplate'] . '/' . $css_file)) {