Updated 2k11 to v1.1.6.
This commit is contained in:
@ -7,7 +7,15 @@ $serendipity['smarty']->assign(array('currpage' => "http://".$_SERVER['HTTP_HOS
|
||||
'currpage2' => $_SERVER['REQUEST_URI']));
|
||||
|
||||
function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp); }
|
||||
$serendipity['smarty']->register_modifier('serendipity_smarty_html5time', 'serendipity_smarty_html5time');
|
||||
if( defined('Smarty::SMARTY_VERSION') ) {
|
||||
$serendipity['smarty']->registerPlugin('modifier', 'serendipity_html5time', 'serendipity_smarty_html5time');
|
||||
} else {
|
||||
// old Smarty 2 syntax
|
||||
$serendipity['smarty']->register_modifier('serendipity_html5time', 'serendipity_smarty_html5time');
|
||||
}
|
||||
|
||||
// function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp); }
|
||||
// $serendipity['smarty']->register_modifier('serendipity_smarty_html5time', 'serendipity_smarty_html5time');
|
||||
|
||||
if (class_exists('serendipity_event_spamblock')) {
|
||||
$required_fieldlist = serendipity_db_query("SELECT value FROM {$serendipity['dbPrefix']}config WHERE name LIKE '%spamblock%required_fields'", true, 'assoc');
|
||||
@ -76,4 +84,4 @@ $template_config = array(
|
||||
|
||||
$template_global_config = array('navigation' => true);
|
||||
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option'], true);
|
||||
serendipity_loadGlobalThemeOptions($template_config, $template_loaded_config, $template_global_config);
|
||||
serendipity_loadGlobalThemeOptions($template_config, $template_loaded_config, $template_global_config);
|
Reference in New Issue
Block a user