mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -423,8 +423,8 @@
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-icon']."</td>";
|
||||
echo " <td class='vtable' style='vertical-align: bottom;'>";
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"].'/resources/fontawesome/fa_icons.php')) {
|
||||
include $_SERVER["PROJECT_ROOT"].'/resources/fontawesome/fa_icons.php';
|
||||
if (file_exists(dirname(__DIR__, 2).'/resources/fontawesome/fa_icons.php')) {
|
||||
include dirname(__DIR__, 2).'/resources/fontawesome/fa_icons.php';
|
||||
}
|
||||
if (!empty($font_awesome_icons) && is_array($font_awesome_icons)) {
|
||||
echo "<table cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
|
||||
Reference in New Issue
Block a user