diff --git a/fp-includes/core/core.theme.php b/fp-includes/core/core.theme.php index 2892c9c..df6830d 100644 --- a/fp-includes/core/core.theme.php +++ b/fp-includes/core/core.theme.php @@ -289,7 +289,7 @@ if (!isset($_GET['feed']) || empty($_GET['feed'])) { $smarty->register_modifier('date_format_daily', 'theme_smarty_modifier_date_format_daily'); - $smarty->register_modifier('date_format', 'theme_smarty_modifier_date_format'); + $smarty->register_modifier('date_format', 'theme_date_format'); } $smarty->register_modifier('date_rfc3339', 'theme_smarty_modifier_date_rfc3339'); @@ -327,7 +327,7 @@ } - function theme_smarty_modifier_date_format( $string, + function theme_date_format( $string, $format = null, $default_date = '' ) { @@ -404,7 +404,7 @@ if (is_null($format)) $format = $fp_config['locale']['dateformat']; - $current_day = theme_smarty_modifier_date_format($string, $format, $default_date); + $current_day = theme_date_format($string, $format, $default_date); if (!isset($THEME_CURRENT_DAY) || $THEME_CURRENT_DAY != $current_day) { $THEME_CURRENT_DAY = $current_day; diff --git a/fp-plugins/archives/plugin.archives.php b/fp-plugins/archives/plugin.archives.php index 727b634..80320f5 100644 --- a/fp-plugins/archives/plugin.archives.php +++ b/fp-plugins/archives/plugin.archives.php @@ -8,10 +8,11 @@ Author: NoWhereMan Author URI: http://flatpress.sf.net */ -class plugin_archive_monthlist extends fs_filelister { +class plugin_archives_monthlist extends fs_filelister { var $_directory = CONTENT_DIR; var $_list = array(); + var $_htmllist = array(); var $_months = array(); var $_year = ''; @@ -24,7 +25,7 @@ class plugin_archive_monthlist extends fs_filelister { // we may have nested elements) $this->_year = $file; $lnk = get_year_link($file); - $this->_list[$this->_year] = "
{$lang['plugin']['archives']['no_posts']}
" @@ -82,4 +108,4 @@ function plugin_archives_widget() { register_widget('archives', 'Archives', 'plugin_archives_widget'); -?> \ No newline at end of file +?>