projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Used more DatabaseWrapperFactory as one instance of each is fine.
[core.git]
/
inc
/
classes
/
main
/
points
/
class_UserPoints.php
diff --git
a/inc/classes/main/points/class_UserPoints.php
b/inc/classes/main/points/class_UserPoints.php
index b28e2948bf879509ed84e12413ebdb88c805621b..428868d80ff28b50f697b4da1696113436d4ef68 100644
(file)
--- a/
inc/classes/main/points/class_UserPoints.php
+++ b/
inc/classes/main/points/class_UserPoints.php
@@
-58,7
+58,7
@@
class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
$searchInstance->setLimit(1);
// Get a wrapper instance
$searchInstance->setLimit(1);
// Get a wrapper instance
- $wrapperInstance =
ObjectFactory::createObject
ByConfiguredName('user_points_db_wrapper_class');
+ $wrapperInstance =
DatabaseWrapperFactory::createWrapper
ByConfiguredName('user_points_db_wrapper_class');
// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);
// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($searchInstance);