Skip to content

Commit 08debf3

Browse files
committed
Internal: #fix opening file in fullscreen when sso forceredirect is activated because we need the config information - refs BT#22974
1 parent 419daee commit 08debf3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

main/inc/global-min.inc.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,23 @@
226226

227227
ini_set('log_errors', '1');
228228

229+
// Including configuration files
230+
$configurationFiles = [
231+
'mail.conf.php',
232+
'profile.conf.php',
233+
'course_info.conf.php',
234+
'add_course.conf.php',
235+
'events.conf.php',
236+
'auth.conf.php',
237+
];
238+
239+
foreach ($configurationFiles as $file) {
240+
$file = api_get_path(CONFIGURATION_PATH).$file;
241+
if (file_exists($file)) {
242+
require_once $file;
243+
}
244+
}
245+
229246
/**
230247
* Include the trad4all language file.
231248
*/

0 commit comments

Comments
 (0)