From e3b43001d9a3638752bce559a1f31b3279d2a3ca Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Sun, 20 Oct 2024 15:55:16 +0300 Subject: [PATCH] [v1.17] Switch default Module resources path (#6998) * Switch default Module resources path * Update CHANGELOG-DEV.md --------- Co-authored-by: Lucas Bartholemy --- MIGRATE-DEV.md | 1 + protected/humhub/components/Module.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MIGRATE-DEV.md b/MIGRATE-DEV.md index 4eff8dfca8..8a9bac2dcd 100644 --- a/MIGRATE-DEV.md +++ b/MIGRATE-DEV.md @@ -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 diff --git a/protected/humhub/components/Module.php b/protected/humhub/components/Module.php index 2bfb952d1e..a93a2fa864 100644 --- a/protected/humhub/components/Module.php +++ b/protected/humhub/components/Module.php @@ -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