diff options
| -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(); } |
