tab name fix

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12052 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-11-02 11:09:01 +00:00
parent 555948841e
commit 37dce7f153
2 changed files with 7 additions and 4 deletions

View file

@ -78,18 +78,20 @@
$args->order_type = 'desc'; // /< sorted value
// get a list
$declared_output = executeQuery('comment.getDeclaredList', $args);
$declared_output = executeQuery('comment.getDeclaredList', $args);
$oCommentModel = &getModel('comment');
if($declared_output->data && count($declared_output->data)) {
$comment_list = array();
$oCommentModel = &getModel('comment');
foreach($declared_output->data as $key => $comment) {
$comment_list[$key] = new commentItem();
$comment_list[$key]->setAttribute($comment);
}
$declared_output->data = $comment_list;
}
$secretNameList = $oCommentModel->getSecretNameList();
// set values in the return object of comment_model:: getCommentList() in order to use a template.
Context::set('total_count', $declared_output->total_count);
@ -97,6 +99,7 @@
Context::set('page', $declared_output->page);
Context::set('comment_list', $declared_output->data);
Context::set('page_navigation', $declared_output->page_navigation);
Context::set('secret_name_list', $secretNameList);
// set the template
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('declared_list');