]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/points/class_UserPoints.php
Fix for method in FrameworkConfiguration, removal of unneccessary code
[core.git] / inc / classes / main / points / class_UserPoints.php
index 1dd62ec81b89a4acbe4398c953239221b162de20..0e913d4e88d2232dbad9d75ab7eea435d63bb4c6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -35,10 +35,6 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
        }
 
        /**
@@ -89,7 +85,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
                $hasRequired = false;
 
                // Get the required points entry
-               $requiredPoints = $this->getConfigInstance()->readConfig($action . '_action_points');
+               $requiredPoints = $this->getConfigInstance()->getConfigEntry($action . '_action_points');
 
                // Now get a search criteria and set the user's name as criteria
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');