1
0

ISO-8859-1 fallback patch so that my blog works ;)

This commit is contained in:
Garvin Hicking
2012-05-25 10:14:47 +02:00
parent a0689ae1ac
commit ba4b629816
2 changed files with 8 additions and 0 deletions

View File

@@ -4,6 +4,9 @@
Version 1.7 ()
------------------------------------------------------------------------
* For Blogs running on a non-UTF-8 language, set a Smarty constant
to indicate the actually used charset.
* Added to use MyISAM handler for s9y tables (we do not use InnoDB
features, but rely on MyISAM fulltext)

View File

@@ -873,8 +873,13 @@ function serendipity_smarty_init($vars = array()) {
$prev_smarty = $_SESSION['no_smarty'];
$_SESSION['no_smarty'] = true;
if (LANG_CHARSET != 'UTF-8') {
@define('SMARTY_RESOURCE_CHAR_SET', LANG_CHARSET);
}
// Default Smarty Engine will be used
@define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
if (!class_exists('Smarty')) {
include SMARTY_DIR . 'Smarty.class.php';
}