Файл: system/controllers/users/actions/profile_karma.php
Строк: 13
<?php
class actionUsersProfileKarma extends cmsAction {
public function run($profile){
$user = cmsUser::getInstance();
$page = $this->request->get('page', 1);
$perpage = 10;
$total = $this->model->getKarmaLogCount($profile['id']);
$log = $this->model->limitPage($page, $perpage)->getKarmaLog($profile['id']);
cmsTemplate::getInstance()->render('profile_karma', array(
'user' => $user,
'profile' => $profile,
'log' => $log,
'total' => $total,
'page' => $page,
'perpage' => $perpage,
));
}
}