Used more DatabaseWrapperFactory as one instance of each is fine.
[core.git] / inc / classes / main / points / class_UserPoints.php
index b28e2948bf879509ed84e12413ebdb88c805621b..428868d80ff28b50f697b4da1696113436d4ef68 100644 (file)
@@ -58,7 +58,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
                $searchInstance->setLimit(1);
 
                // Get a wrapper instance
-               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_points_db_wrapper_class');
+               $wrapperInstance = DatabaseWrapperFactory::createWrapperByConfiguredName('user_points_db_wrapper_class');
 
                // Get result back
                $resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);