ISO-8859-1 fallback patch so that my blog works ;)
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
Version 1.7 ()
|
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
|
* Added to use MyISAM handler for s9y tables (we do not use InnoDB
|
||||||
features, but rely on MyISAM fulltext)
|
features, but rely on MyISAM fulltext)
|
||||||
|
|
||||||
|
@@ -873,8 +873,13 @@ function serendipity_smarty_init($vars = array()) {
|
|||||||
$prev_smarty = $_SESSION['no_smarty'];
|
$prev_smarty = $_SESSION['no_smarty'];
|
||||||
$_SESSION['no_smarty'] = true;
|
$_SESSION['no_smarty'] = true;
|
||||||
|
|
||||||
|
if (LANG_CHARSET != 'UTF-8') {
|
||||||
|
@define('SMARTY_RESOURCE_CHAR_SET', LANG_CHARSET);
|
||||||
|
}
|
||||||
|
|
||||||
// Default Smarty Engine will be used
|
// Default Smarty Engine will be used
|
||||||
@define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
|
@define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
|
||||||
|
|
||||||
if (!class_exists('Smarty')) {
|
if (!class_exists('Smarty')) {
|
||||||
include SMARTY_DIR . 'Smarty.class.php';
|
include SMARTY_DIR . 'Smarty.class.php';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user