Skip to content

Commit

Permalink
Rewrite obsoleted function usage (#12)
Browse files Browse the repository at this point in the history
* Replace usage of obosleted getSettingByScope with method call
  to SettingGateway.
  • Loading branch information
yookoala authored Oct 3, 2022
1 parent a1fa7e4 commit 31cd0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ATL/atl_write.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
if (isActionAccessible($guid, $connection2, '/modules/External Assessment/externalAssessment_details.php')) {
$gibbonYearGroupIDListArray = (explode(',', $gibbonYearGroupIDList));
if (count($gibbonYearGroupIDListArray) == 1) {
$primaryExternalAssessmentByYearGroup = unserialize(getSettingByScope($connection2, 'School Admin', 'primaryExternalAssessmentByYearGroup'));
$primaryExternalAssessmentByYearGroup = unserialize($container->get(SettingGateway::class)->getSettingByScope('School Admin', 'primaryExternalAssessmentByYearGroup'));
if ($primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]] != '' and $primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]] != '-') {
$gibbonExternalAssessmentID = substr($primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]], 0, strpos($primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]], '-'));
$gibbonExternalAssessmentIDCategory = substr($primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]], (strpos($primaryExternalAssessmentByYearGroup[$gibbonYearGroupIDListArray[0]], '-') + 1));
Expand Down

0 comments on commit 31cd0e5

Please sign in to comment.