Skip to content

Commit

Permalink
Merge branch 'oc-php-lib' into issue-182_oc-php-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Aug 25, 2023
2 parents 43e70fe + 0cf065f commit 87f01b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/class.ilObjOpenCastGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public function showDeleteConfirmation($a_ids, $a_supress_message = false): bool
$cgui->setCancel($this->ilias_dic->language()->txt("cancel"), "cancelDelete");
$cgui->setConfirm($this->ilias_dic->language()->txt("confirm"), "confirmedDelete");

$form_name = "cgui_" . md5(uniqid('', true));
$form_name = "cgui_" . md5(uniqid(''));
$cgui->setFormName($form_name);

$deps = [];
Expand Down
4 changes: 2 additions & 2 deletions src/UI/Modal/EventModals.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function initRepublish(): void
if ($this->workflow_repository->anyWorkflowExists()) {
$form = new ilPropertyFormGUI();
$form->setFormAction($this->dic->ctrl()->getFormAction($this->parent_gui, "republish"));
$form->setId(uniqid('form', true));
$form->setId(uniqid('form'));

$select = new ilSelectInputGUI($this->plugin->txt('workflow'), 'workflow_id');
$select->setOptions($this->workflow_repository->getAllWorkflowsAsArray('id', 'title'));
Expand Down Expand Up @@ -125,7 +125,7 @@ protected function buildReportingModal(string $cmd, string $title, string $body)
{
$tpl = new ilTemplate("tpl.reporting_modal.html", true, true, $this->plugin->getDirectory());

$form_id = uniqid('form', true);
$form_id = uniqid('form');
$tpl->setVariable('FORM_ID', $form_id);
$tpl->setVariable('FORM_ACTION', $this->dic->ctrl()->getFormAction($this->parent_gui, $cmd));
$tpl->setVariable('BODY', $body);
Expand Down
2 changes: 1 addition & 1 deletion src/Util/FileTransfer/PaellaConfigStorageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PaellaConfigStorageService extends UploadStorageService
*/
public function moveUploadToStorage(UploadResult $uploadResult): string
{
$identifier = uniqid('oc_', true);
$identifier = uniqid('oc_');
$this->fileUpload->moveOneFileTo($uploadResult, $this->idToDirPath($identifier), Location::WEB);
return $identifier;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Util/FileTransfer/UploadStorageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(Filesystem $file_system, FileUpload $fileUpload)
*/
public function moveUploadToStorage(UploadResult $uploadResult): string
{
$identifier = uniqid('', true);
$identifier = uniqid('');
$this->fileUpload->moveOneFileTo($uploadResult, $this->idToDirPath($identifier), Location::TEMPORARY);
return $identifier;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ public function getFileInfo(string $identifier, int $fileSizeUnit = DataSize::By

public function buildACLUploadFile(ACL $acl): xoctUploadFile
{
$tmp_name = uniqid('tmp', false);
$tmp_name = uniqid('tmp');
$this->fileSystem->write($this->idToDirPath($tmp_name), (new ACLtoXML($acl))->getXML());
$upload_file = new xoctUploadFile();
$upload_file->setFileSize(
Expand Down

0 comments on commit 87f01b3

Please sign in to comment.