fix native charset böog missing smarty entry title
Basically not a Smarty error. Just a php htmlspecialchars($entry['title']) setting this var to be empty. References #236
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php # $Id$
|
||||
<?php
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||
# All rights reserved. See LICENSE file for licensing details
|
||||
|
||||
@ -1141,8 +1141,8 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
|
||||
|
||||
$entry['link'] = serendipity_archiveURL($entry['id'], $entry['title'], 'serendipityHTTPPath', true, array('timestamp' => $entry['timestamp']));
|
||||
$entry['commURL'] = serendipity_archiveURL($entry['id'], $entry['title'], 'baseURL', false, array('timestamp' => $entry['timestamp']));
|
||||
$entry['html_title']= $entry['title'];
|
||||
$entry['title'] = htmlspecialchars($entry['title']);
|
||||
$entry['html_title'] = $entry['title'];
|
||||
$entry['title'] = LANG_CHARSET != 'UTF-8' ? $entry['title'] : htmlspecialchars($entry['title']);
|
||||
|
||||
$entry['title_rdf'] = preg_replace('@-{2,}@', '-', $entry['html_title']);
|
||||
$entry['rdf_ident'] = serendipity_archiveURL($entry['id'], $entry['title_rdf'], 'baseURL', true, array('timestamp' => $entry['timestamp']));
|
||||
|
@ -904,6 +904,7 @@ function serendipity_smarty_init($vars = array()) {
|
||||
$_SESSION['no_smarty'] = true;
|
||||
|
||||
if (LANG_CHARSET != 'UTF-8') {
|
||||
@define('SMARTY_MBSTRING', false);
|
||||
@define('SMARTY_RESOURCE_CHAR_SET', LANG_CHARSET);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user