Dashboard: Fix php warnings (#7493)

* Dashboard: Fix php warnings

* Update dashboard_edit.php

* Update dashboard.php

* Update parent.php

* Update footer.php

* Update active_calls.php

* Update active_calls.php
This commit is contained in:
Alex
2025-09-12 10:57:15 -07:00
committed by GitHub
parent 683fd9ab9f
commit 5c096bbec8
7 changed files with 13 additions and 10 deletions

View File

@@ -172,7 +172,7 @@
require_once "resources/header.php";
//include websockets
$version = md5(file_get_contents(__DIR__, '/resources/javascript/ws_client.js'));
$version = md5(file_get_contents(__DIR__ . '/resources/javascript/ws_client.js'));
echo "<script src='/core/dashboard/resources/javascript/ws_client.js?v=$version'></script>\n";
//include sortablejs
@@ -204,7 +204,7 @@
echo " <div class='heading'><b>".$text['title-dashboard']."</b></div>\n";
echo " <div class='actions'>\n";
echo " <form id='dashboard' method='post' _onsubmit='setFormSubmitting()'>\n";
if ($_SESSION['theme']['menu_style']['text'] != 'side') {
if ($settings->get('theme', 'menu_style') != 'side') {
echo " ".$text['label-welcome']." <a href='".PROJECT_PATH."/core/users/user_edit.php?id=user'>".$_SESSION["username"]."</a>&nbsp; &nbsp;";
}
if (permission_exists('dashboard_edit')) {