From 2324b5da544ece7a698a874cebc5466b0c939eca Mon Sep 17 00:00:00 2001 From: modela bitweaver Date: Mon, 1 Feb 2021 22:45:10 -0500 Subject: privatize and clean up requireHandlerFile; use public getContentClassName when need to load a class --- Statistics.php | 4 ++-- 1 file 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(); } -- cgit v1.3