Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inc/deployfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ public function displayAjaxValues($config, $request_data, $rand, $mode)
*/
public static function showServerFileTree($rand)
{
$pfConfig = new PluginGlpiinventoryConfig();
$dir = $pfConfig->getValue('server_upload_path');
echo "<script type='text/javascript'>";
echo "Ext.Ajax.defaultHeaders = {'X-Glpi-Csrf-Token' : getAjaxCsrfToken()};";
echo "var Tree_Category_Loader$rand = new Ext.tree.TreeLoader({
Expand Down Expand Up @@ -418,7 +420,7 @@ public static function showServerFileTree($rand)

echo '<div class="alert alert-info d-flex" role="alert">';
echo '<i class="fas fa-exclamation-circle fa-2x me-2"></i>';
echo '<p>' . sprintf(__('Files need to be uploaded to %s folder to be displayed here', 'glpiinventory'), '<mark>/files/_plugins/glpiinventory/upload/</mark>') . '</p>';
echo '<p>' . sprintf(__('Files need to be uploaded to %s folder to be displayed here', 'glpiinventory'), "<mark>$dir</mark>") . '</p>';
echo '</div>';

echo "<div id='tree_projectcategory$rand' ></div>";
Expand Down