summaryrefslogtreecommitdiff
path: root/includes/classes
diff options
context:
space:
mode:
Diffstat (limited to 'includes/classes')
-rw-r--r--includes/classes/class_stats.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/includes/classes/class_stats.php b/includes/classes/class_stats.php
index 2189750afb..91e2210cbe 100644
--- a/includes/classes/class_stats.php
+++ b/includes/classes/class_stats.php
@@ -3704,16 +3704,9 @@ class stats {
$cache[$id]=$rows;
return $rows;
}
-}
-/*
- * This class provides access to additional non-stats features of webtrees
- * for use in the HTML block (Extended interaface enabled).
- */
-class stats_ui extends stats {
-///////////////////////////////////////////////////////////////////////////////
-// Favorites //
-///////////////////////////////////////////////////////////////////////////////
+ // These functions provide access to additional non-stats features of webtrees
+ // for use in the HTML block.
static function _getFavorites($isged=true) {
global $GEDCOM;
@@ -3738,10 +3731,10 @@ class stats_ui extends stats {
static function totalGedcomFavorites(){return count(gedcom_favorites_WT_Module::getUserFavorites(WT_GEDCOM));}
static function totalUserFavorites(){return count(user_favorites_WT_Module::getUserFavorites(WT_USER_NAME));}
-///////////////////////////////////////////////////////////////////////////////
-// Other blocks //
-// example of use: #callBlock:block_name# //
-///////////////////////////////////////////////////////////////////////////////
+ ///////////////////////////////////////////////////////////////////////////////
+ // Other blocks //
+ // example of use: #callBlock:block_name# //
+ ///////////////////////////////////////////////////////////////////////////////
static function callBlock($params=null) {
global $ctype;
@@ -3773,4 +3766,4 @@ class stats_ui extends stats {
function totalUserMessages(){return count(getUserMessages(WT_USER_NAME));}
function totalUserJournal(){ return count(getUserNews(WT_USER_ID));}
function totalGedcomNews(){ return count(getUserNews(WT_GEDCOM));}
-} \ No newline at end of file
+}