diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-02-01 22:45:10 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-02-01 22:45:10 -0500 |
| commit | 2324b5da544ece7a698a874cebc5466b0c939eca (patch) | |
| tree | 053de769c624282ef01b3cd9836743ec40072027 | |
| parent | ab5e78fbcc96cb15b9159eef1a66c25cad0606bf (diff) | |
| download | stats-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.php | 4 |
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(); } |
