More game classes added:
[shipsimu.git] / application / ship-simu / main / companies / class_ShippingCompany.php
index 7549af4056c7d5ac0e58a13385f8d89b3d974848..971c578cf44974d5a7622d3d26f458f04ecdb46c 100644 (file)
@@ -120,7 +120,7 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
                $participates = false;
 
                // Get a company database wrapper class
-               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('company_db_wrapper_class');
+               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('company_db_wrapper_class', array($this));
 
                // Ask the wrapper if this user participates
                $participates = $wrapperInstance->ifUserParticipatesInCompany($userInstance);
@@ -204,9 +204,9 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
                return $isEmployee;
        }
 
-       //----------------------------------------------------------------------------
-       // From here is very old code which needs to be translated and changed heavily
-       //----------------------------------------------------------------------------
+       //------------------------------------------------------------------------------\
+       // Below here is very old code which needs to be translated and changed heavily |
+       //------------------------------------------------------------------------------/
 
        /**
         * Intialize all lists