|
|
|
@ -209,7 +209,7 @@ if (!empty($groupId)) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Actions. |
|
|
|
// Actions. |
|
|
|
$document_id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : null; |
|
|
|
$documentIdFromGet = $document_id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : null; |
|
|
|
$currentUrl = api_get_self().'?'.api_get_cidreq().'&id='.$document_id; |
|
|
|
$currentUrl = api_get_self().'?'.api_get_cidreq().'&id='.$document_id; |
|
|
|
$curdirpath = isset($_GET['curdirpath']) ? Security::remove_XSS($_GET['curdirpath']) : null; |
|
|
|
$curdirpath = isset($_GET['curdirpath']) ? Security::remove_XSS($_GET['curdirpath']) : null; |
|
|
|
|
|
|
|
|
|
|
|
@ -604,8 +604,8 @@ if (isset($document_id) && empty($action)) { |
|
|
|
0 |
|
|
|
0 |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
// If the document is not a folder we show the document. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If the document is not a folder we show the document. |
|
|
|
if ($document_data) { |
|
|
|
if ($document_data) { |
|
|
|
$parent_id = $document_data['parent_id']; |
|
|
|
$parent_id = $document_data['parent_id']; |
|
|
|
// Hack in order to clean the document id in case of false positive from links |
|
|
|
// Hack in order to clean the document id in case of false positive from links |
|
|
|
@ -1771,7 +1771,7 @@ if ($isAllowedToEdit || |
|
|
|
if ($fileLinkEnabled && !$is_certificate_mode) { |
|
|
|
if ($fileLinkEnabled && !$is_certificate_mode) { |
|
|
|
$actionsLeft .= Display::url( |
|
|
|
$actionsLeft .= Display::url( |
|
|
|
Display::return_icon('clouddoc_new.png', get_lang('AddCloudLink'), '', ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('clouddoc_new.png', get_lang('AddCloudLink'), '', ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'document/add_link.php?'.api_get_cidreq().'&id='.$document_id |
|
|
|
api_get_path(WEB_CODE_PATH).'document/add_link.php?'.api_get_cidreq().'&id='.$documentIdFromGet |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|