From 397bf55018697eb12a3d6289d8695a29cbdcdfd2 Mon Sep 17 00:00:00 2001 From: Fabian Schmid Date: Fri, 25 Oct 2024 16:42:06 +0200 Subject: [PATCH] [FIX] PHP syntax --- Modules/File/classes/Versions/class.ilFileVersionsGUI.php | 6 +----- Modules/File/classes/class.ilObjFileGUI.php | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Modules/File/classes/Versions/class.ilFileVersionsGUI.php b/Modules/File/classes/Versions/class.ilFileVersionsGUI.php index 42f56f308328..b413c2bc7c0d 100644 --- a/Modules/File/classes/Versions/class.ilFileVersionsGUI.php +++ b/Modules/File/classes/Versions/class.ilFileVersionsGUI.php @@ -27,11 +27,7 @@ use ILIAS\Services\WOPI\Discovery\ActionRepository; use ILIAS\Services\WOPI\Embed\EmbeddedApplication; use ILIAS\Data\URI; -use ILIAS\UI\Component\Modal\Modal; -use ILIAS\Services\WOPI\Discovery\ActionTarget; use ILIAS\FileUpload\MimeType; -use ILIAS\MetaData\Services\ServicesInterface as LOMServices; -use ILIAS\File\Capabilities\Capabilities; /** * @author Fabian Schmid @@ -61,7 +57,7 @@ class ilFileVersionsGUI public const CMD_CREATE_NEW_VERSION = 'saveVersion'; public const CMD_ADD_REPLACING_VERSION = 'addReplacingVersion'; public const CMD_CREATE_REPLACING_VERSION = 'createReplacingVersion'; - public const CMD_UNZIP_CURRENT_REVISION = Capabilities::UNZIP->value; + public const CMD_UNZIP_CURRENT_REVISION = 'unzipCurrentRevision'; public const CMD_PROCESS_UNZIP = 'processUnzip'; public const CMD_RENDER_DELETE_SELECTED_VERSIONS_MODAL = 'renderDeleteSelectedVersionsModal'; public const CMD_PUBLISH = 'publish'; diff --git a/Modules/File/classes/class.ilObjFileGUI.php b/Modules/File/classes/class.ilObjFileGUI.php index 7e697dc26034..1a854799104a 100755 --- a/Modules/File/classes/class.ilObjFileGUI.php +++ b/Modules/File/classes/class.ilObjFileGUI.php @@ -62,11 +62,11 @@ class ilObjFileGUI extends ilObject2GUI public const UPLOAD_ORIGIN_STANDARD = 'standard'; public const UPLOAD_ORIGIN_DROPZONE = 'dropzone'; - public const CMD_EDIT = Capabilities::EDIT_SETTINGS->value; - public const CMD_VERSIONS = Capabilities::MANAGE_VERSIONS->value; + public const CMD_EDIT ='edit'; + public const CMD_VERSIONS = 'versions'; public const CMD_UPLOAD_FILES = "uploadFiles"; - public const CMD_SEND_FILE = Capabilities::DOWNLOAD->value; + public const CMD_SEND_FILE = 'sendFile'; private \ILIAS\File\Capabilities\CapabilityCollection $capabilities; /**