Update background_video

- Uses type array
- Use the first item in the array
This commit is contained in:
FusionPBX
2024-09-10 04:03:44 -06:00
committed by GitHub
parent 86df5a2e6a
commit e86ec20547
3 changed files with 10 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2022
Portions created by the Initial Developer are Copyright (C) 2008-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -158,6 +158,10 @@
//assign the setings
$view->assign('settings', $settings_array);
}
//background video
if (!empty($_SESSION['theme']['background_video']) && is_array($_SESSION['theme']['background_video'])) {
$view->assign('background_video', $_SESSION['theme']['background_video'][0]);
}
//document title
if (isset($_SESSION['theme']['title']['text']) && $_SESSION['theme']['title']['text'] != '') {
$document_title = $_SESSION['theme']['title']['text'];