Skip to content

Commit

Permalink
[FIX] PHP syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chfsx committed Oct 25, 2024
1 parent 809fd75 commit 397bf55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Modules/File/classes/Versions/class.ilFileVersionsGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions Modules/File/classes/class.ilObjFileGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 397bf55

Please sign in to comment.