@@ -30,7 +30,6 @@ class SettingsImplementation implements Settings
3030 public function __construct (
3131 private readonly Language $ lng ,
3232 private readonly \ilSetting $ settings ,
33- private readonly \ilGlobalTemplateInterface $ tpl ,
3433 private readonly UIFactory $ ui_factory ,
3534 private readonly Refinery $ refinery ,
3635 private readonly ConfigurationRepository $ user_settings_configuration_repository ,
@@ -105,9 +104,13 @@ public function addSectionsToLegacyForm(
105104 }
106105
107106 public function performAdditionalChecks (
107+ \ilGlobalTemplateInterface $ tpl ,
108108 \ilPropertyFormGUI $ form
109109 ): bool {
110- return $ this ->checkStartingPointValue ($ form );
110+ return $ this ->checkStartingPointValue (
111+ $ tpl ,
112+ $ form
113+ );
111114 }
112115
113116 /**
@@ -366,9 +369,17 @@ private function retrieveValuefromInputs(
366369 return $ form [$ section_key ][$ setting ->getIdentifier ()];
367370 }
368371
369- private function checkStartingPointValue (\ilPropertyFormGUI $ form ): bool
370- {
372+ private function checkStartingPointValue (
373+ \ilGlobalTemplateInterface $ tpl ,
374+ \ilPropertyFormGUI $ form
375+ ): bool {
371376 return $ form ->getInput ('additional ' ) === ''
372- || $ this ->user_settings_configuration_repository ->getByIdentifier ('starting_point ' )->validateUserChoice ($ this ->tpl , $ this ->lng , $ form );
377+ || $ this ->user_settings_configuration_repository
378+ ->getByIdentifier ('starting_point ' )
379+ ->validateUserChoice (
380+ $ tpl ,
381+ $ this ->lng ,
382+ $ form
383+ );
373384 }
374385}
0 commit comments