Disabling Uri::course_params see #5344 doesn't work with HTTPS

skala
Julio Montoya 13 years ago
parent 357e9f4200
commit 6b4ee0e698
  1. 6
      main/document/upload.php

@ -216,9 +216,11 @@ if (!$is_certificate_mode) {
echo build_directory_selector($folders, $document_id, (isset($group_properties['directory']) ? $group_properties['directory'] : array()));
}
$params = Uri::course_params();
/*$params = Uri::course_params();
$params['id'] = Request::get('id');
$action = Uri::here($params, false);
$action = Uri::here($params, false);*/
$action = api_get_self().'?'.api_get_cidreq().'&id='.$document_id;
$form = new FormValidator('upload', 'POST', $action.'#tabs-2', '', 'enctype="multipart/form-data"');
$form->addElement('hidden', 'id', $document_id);

Loading…
Cancel
Save