Skip to content

Commit bfec28d

Browse files
committed
Display login_bottom region in Not-Allowed-Login form - refs BT#18759
1 parent 0d7aee9 commit bfec28d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main/inc/lib/api.lib.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3950,6 +3950,9 @@ function api_not_allowed(
39503950
exit;
39513951
}
39523952

3953+
$tplPlugin = new AppPlugin();
3954+
$pluginRegionContent = $tplPlugin->load_region('login_bottom', $tpl, true);
3955+
39533956
if (!empty($_SERVER['REQUEST_URI']) &&
39543957
(
39553958
!empty($_GET['cidReq']) ||
@@ -3997,6 +4000,8 @@ function api_not_allowed(
39974000
$content .= "</div>";
39984001
}
39994002

4003+
$content .= PHP_EOL.$pluginRegionContent;
4004+
40004005
if (!empty($courseCode)) {
40014006
$content .= '<hr/><p style="text-align:center"><a href="'.$home_url.'">'.
40024007
get_lang('ReturnToCourseHomepage').'</a></p>';
@@ -4073,6 +4078,8 @@ function api_not_allowed(
40734078
}
40744079
}
40754080

4081+
$msg .= PHP_EOL.$pluginRegionContent;
4082+
40764083
$tpl->assign('content', $msg);
40774084
$tpl->display_one_col_template();
40784085
exit;

0 commit comments

Comments
 (0)