diff options
| author | Greg Roach <fisharebest@gmail.com> | 2018-01-19 12:02:45 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2018-01-19 14:01:47 +0000 |
| commit | 9807cf728eb4ea04269f0d49ce21dcef973f84a7 (patch) | |
| tree | bcb43b254cd3cc7aefbfa01d1eeb5a62f628ab9e /app/Stats.php | |
| parent | 9845ccc635600d3599cc6f861c914b073dd8b07b (diff) | |
| download | webtrees-9807cf728eb4ea04269f0d49ce21dcef973f84a7.tar.gz webtrees-9807cf728eb4ea04269f0d49ce21dcef973f84a7.tar.bz2 webtrees-9807cf728eb4ea04269f0d49ce21dcef973f84a7.zip | |
Use views for favorites block
Diffstat (limited to 'app/Stats.php')
| -rw-r--r-- | app/Stats.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Stats.php b/app/Stats.php index 4ac0cf945e..c8d3023d7f 100644 --- a/app/Stats.php +++ b/app/Stats.php @@ -6439,7 +6439,7 @@ class Stats { */ public function totalGedcomFavorites() { if (Module::getModuleByName('gedcom_favorites')) { - return count(FamilyTreeFavoritesModule::getFavorites($this->tree->getTreeId())); + return count(FamilyTreeFavoritesModule::getFavorites($this->tree)); } else { return 0; } @@ -6452,7 +6452,7 @@ class Stats { */ public function totalUserFavorites() { if (Module::getModuleByName('user_favorites')) { - return count(UserFavoritesModule::getFavorites(Auth::id())); + return count(UserFavoritesModule::getFavorites($this->tree, Auth::id())); } else { return 0; } |
