[v1.17] Switch default Module resources path (#6998)

* Switch default Module resources path

* Update CHANGELOG-DEV.md

---------

Co-authored-by: Lucas Bartholemy <lucas@bartholemy.com>
This commit is contained in:
Yuriy Bakhtin 2024-10-20 15:55:16 +03:00 committed by GitHub
parent 643b8eca78
commit e3b43001d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ At least PHP 8.0 is required with this version.
- Use `(new ContentSearchService($exampleContent->content))->update();` instead of `Yii::$app->search->update($exampleContent);`
- The method `setCellValueByColumnAndRow()` has been replaced with `setCellValue()` and `setValueExplicit()`.
- When rendering xlsx generated data cells, use the `setCellValue()` method with the appropriate coordinate obtained using `getColumnLetter()`.
- Switch `Module::$resourcesPath` to `resources`
### Deprecations
- `\humhub\components\Module::getIsActivated()` use `getIsEnabled()` instead

View File

@ -46,7 +46,7 @@ class Module extends \yii\base\Module
* @var string The path for module resources (images, javascripts)
* Also module related assets like README.md and module_image.png should be placed here.
*/
public $resourcesPath = 'assets';
public $resourcesPath = 'resources';
/**
* @inheritdoc