Rewrote the static call to dynamic
[core.git] / inc / classes / main / database / class_BaseDatabaseWrapper.php
index 357be67706a1072528f2d63e4c2feb58cb84fb8c..63d121c90af517c30ac50756b04071d1fee63c78 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;