Rewrote the static call to dynamic
[core.git] / inc / classes / main / database / class_BaseDatabaseWrapper.php
index 357be67..63d121c 100644 (file)
@@ -176,7 +176,7 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem {
                }
 
                // Create an instance of a DatabaseResult class with the given result
-               $resultInstance = DatabaseResult::createDatabaseResult($result);
+               $resultInstance = ObjectFactory::createObjectByConfiguredName('database_result_class', array($result));
 
                // And return the instance
                return $resultInstance;