3
3
# This program is distributed under the terms of the
4
4
# GNU General Public License, version 2.
8
8
function smarty_block_mtentries($args, $content, &$ctx, &$repeat) {
9
$localvars = array('entry', '_entries_counter','entries','current_timestamp','modification_timestamp','_entries_lastn', 'current_timestamp_end', 'DateHeader', 'DateFooter', '_entries_glue', 'blog', 'blog_id', 'conditional', 'else_content');
9
$localvars = array('entry', '_entries_counter','entries','current_timestamp','modification_timestamp','_entries_lastn', 'current_timestamp_end', 'DateHeader', 'DateFooter', '_entries_glue', 'blog', 'blog_id', 'conditional', 'else_content', '__out');
10
10
if (isset($args['sort_by']) && $args['sort_by'] == 'score' && !isset($args['namespace'])) {
11
11
return $ctx->error($ctx->mt->translate('sort_by="score" must be used in combination with namespace.'));