Skip to content

Commit

Permalink
Update module resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed May 28, 2024
1 parent 117e8f3 commit fa34890
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
21 changes: 3 additions & 18 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

class Module extends ContentContainerModule
{

public $resourcesPath = 'resources';

/**
* @var string sort name as 'name', 'size', 'updated_at'
* @see FileSystemItemRow::ORDER_MAPPING
Expand All @@ -33,18 +30,6 @@ class Module extends ContentContainerModule
public $defaultPostedFilesSort = FileSystemItemRow::ORDER_TYPE_UPDATED_AT;
public $defaultPostedFilesOrder = 'ASC';

/**
* @var string default order of file entries e.g.: 'file.updated_at ASC' or 'title ASC'
*/
public $defaultFolderOrder = 'title ASC';

const ORDER_NAME = 'name';
const ORDER_UPDATED_AT = 'updated_at';
const ORDER_SIZE = 'size';

const UPLOAD_BEHAVIOUR_INDEX = 0;
const UPLOAD_BEHAVIOUR_REPLACE = 1;

/**
* @inheritdoc
*/
Expand All @@ -64,8 +49,8 @@ public function init()
public function getContentContainerTypes()
{
return [
Space::className(),
User::className()
Space::class,
User::class,
];
}

Expand Down Expand Up @@ -156,7 +141,7 @@ public function getConfigUrl()
/**
* Determines ZIP Support is enabled or not
*
* @return boolean is ZIP support enabled
* @return bool is ZIP support enabled
*/
public function isZipSupportEnabled(): bool
{
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

0.17.0 - Unreleased
-------------------------
- Fix #220: Update module resources path

0.16.7 - Unreleased
-------------------------
- Fix #216: Fix image space rending on wall entry
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"organisation",
"sharing"
],
"version": "0.16.7",
"version": "0.17.0",
"humhub": {
"minVersion": "1.14"
"minVersion": "1.17"
},
"homepage": "https://github.com/humhub/cfiles",
"authors": [
Expand Down

0 comments on commit fa34890

Please sign in to comment.