File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -41,36 +41,6 @@ public function __construct(Authentication $authentication, \daos\Items $itemsDa
41
41
$ this ->view = $ view ;
42
42
}
43
43
44
- /**
45
- * returns current basic stats
46
- * json
47
- *
48
- * @return void
49
- */
50
- public function stats () {
51
- $ this ->authentication ->needsLoggedInOrPublicMode ();
52
-
53
- $ stats = $ this ->itemsDao ->stats ();
54
-
55
- $ tags = $ this ->tagsDao ->getWithUnread ();
56
-
57
- foreach ($ tags as $ tag ) {
58
- if (strpos ($ tag ['tag ' ], '# ' ) !== 0 ) {
59
- continue ;
60
- }
61
- $ stats ['unread ' ] -= $ tag ['unread ' ];
62
- }
63
-
64
- if (array_key_exists ('tags ' , $ _GET ) && $ _GET ['tags ' ] == 'true ' ) {
65
- $ stats ['tagshtml ' ] = $ this ->tagsController ->renderTags ($ tags );
66
- }
67
- if (array_key_exists ('sources ' , $ _GET ) && $ _GET ['sources ' ] == 'true ' ) {
68
- $ stats ['sourceshtml ' ] = $ this ->sourcesController ->renderSources ($ this ->sourcesDao ->getWithUnread ());
69
- }
70
-
71
- $ this ->view ->jsonSuccess ($ stats );
72
- }
73
-
74
44
/**
75
45
* returns updated database info (stats, item statuses)
76
46
* json
You can’t perform that action at this time.
0 commit comments