Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

@@ -67,8 +67,23 @@ class Blogs extends OverviewStatisticsAbstract
*/
public function getBlock( array|string|null $dateRange = NULL, string $subBlock = NULL ): string
{
$total = Db::i()->select( 'COUNT(*)', 'blog_blogs' )->first();
return Theme::i()->getTemplate( 'stats' )->overviewComparisonCount(
$this->getBlockNumbers( $dateRange, $subBlock )['statsreports_current_count'],
NULL,
NULL
);
}
return Theme::i()->getTemplate( 'stats' )->overviewComparisonCount( $total, NULL, NULL );
/**
* @param array|string $dateRange=null
* @param string $subBlock = null
*
* @return array{statsreports_current_count: number}
*/
public function getBlockNumbers( array|string $dateRange = null, string $subBlock = null ) : array
{
return [
'statsreports_current_count' => Db::i()->select( "COUNT(*)", 'blog_blogs' )->first()
];
}
}