Stats display popup for apps would display a minor error

pull/11/head
Squidly271 2021-01-30 23:03:58 -05:00
parent a262f82d46
commit 886737f6bf
2 changed files with 3 additions and 0 deletions

View File

@ -774,6 +774,9 @@ case 'displayTags':
# Displays The Statistics For The Appfeed #
###########################################
case 'statistics':
@unlink($caPaths['community-templates-displayed']);
@unlink($caPaths['community-templates-allSearchResults']);
@unlink($caPaths['community-templates-catSearchResults']);
$statistics = download_json($caPaths['statisticsURL'],$caPaths['statistics']);
download_json($caPaths['moderationURL'],$caPaths['moderation']);
$statistics['totalModeration'] = count(readJsonFile($caPaths['moderation']));