// Maximum of allowed companies reached?
if ($linkInstance->getValueInstance()->ifUserCreatedMaximumAllowedCompanies()) {
// No more companies allowed to create
-} elseif ($linkInstance->getValueInstance()->ifUserPointsEnough('found_new_company')) {
+} elseif ($linkInstance->getValueInstance()->ifUserHasRequiredPoints('found_new_company')) {
// Enough money to found company
-} elseif ($linkInstance->getValueInstance()->ifUserPointsEnough('write_applications')) {
+} elseif ($linkInstance->getValueInstance()->ifUserHasRequiredPoints('write_applications')) {
// Enough money to write applications to other companies
} elseif ($linkInstance->getValueInstance()->ifGovermentPaysStartupHelp()) {
// Display link to goverment for startup help
// Money bank is closed!
}
-if ($linkInstance->getValueInstance()->ifRefillPageActive()) {
+if ($linkInstance->ifRefillPageActive()) {
// Display link to refill page
} else {
// Refill page not active