summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormodela bitweaver <spiderr@bitweaver.org>2021-02-01 22:45:10 -0500
committermodela bitweaver <spiderr@bitweaver.org>2021-02-01 22:45:10 -0500
commit2324b5da544ece7a698a874cebc5466b0c939eca (patch)
tree053de769c624282ef01b3cd9836743ec40072027
parentab5e78fbcc96cb15b9159eef1a66c25cad0606bf (diff)
downloadstats-2324b5da544ece7a698a874cebc5466b0c939eca.tar.gz
stats-2324b5da544ece7a698a874cebc5466b0c939eca.tar.bz2
stats-2324b5da544ece7a698a874cebc5466b0c939eca.zip
privatize and clean up requireHandlerFile; use public getContentClassName when need to load a class
-rw-r--r--Statistics.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Statistics.php b/Statistics.php
index 13a56db..4c222cf 100644
--- a/Statistics.php
+++ b/Statistics.php
@@ -242,8 +242,8 @@ class Statistics extends BitBase {
$ret = array();
foreach( $gLibertySystem->mContentTypes as $guid => $type ) {
- if( $gLibertySystem->requireHandlerFile( $type )) {
- $object = new $type['handler_class']();
+ if( $typeClass = $gLibertySystem->getContentClassName( $guid )) {
+ $object = new $typeClass();
if( method_exists( $object, 'getStats' )) {
$ret[$guid] = $object->getStats();
}