From c4f5409ffa8c07712a77b58f30b275e04c45d883 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 23 Sep 2023 21:31:43 +0300 Subject: [PATCH] rename methods #15 --- src/app/controller/module/profile.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/controller/module/profile.php b/src/app/controller/module/profile.php index 7858fcd..a84364c 100644 --- a/src/app/controller/module/profile.php +++ b/src/app/controller/module/profile.php @@ -13,11 +13,11 @@ class AppControllerModuleProfile { $route = isset($_GET['_route_']) ? (string) $_GET['_route_'] : ''; - $stars = $this->_user->getUserPageStarsTotal(); - $views = $this->_user->getUserPageViewsTotal(); - $downloads = $this->_user->getUserPageDownloadsTotal(); - $comments = $this->_user->getUserPageCommentsTotal(); - $editions = $this->_user->getUserPageEditionsTotal(); + $stars = $this->_user->findUserPageStarsDistinctTotalByValue(true); + $views = $this->_user->findUserPageViewsDistinctTotal(); + $downloads = $this->_user->findUserPageDownloadsDistinctTotal(); + $comments = $this->_user->findUserPageCommentsDistinctTotal(); + $editions = $this->_user->findUserPageEditionsDistinctTotal(); include __DIR__ . '../../../view/theme/default/module/profile.phtml'; }