mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix visibility of the link "Uninstall" on Windows server (#6378)
* Fix visibility of the link "Uninstall" on Windows server * Use file normalizator
This commit is contained in:
parent
34211c3c17
commit
c7f2217cd0
@ -7,7 +7,8 @@ HumHub Changelog
|
|||||||
- Fix #6351: Error when config `defaultReloadableScripts` is not array
|
- Fix #6351: Error when config `defaultReloadableScripts` is not array
|
||||||
- Fix #6359: Avoid double call of `afterSave` on creating of a published content
|
- Fix #6359: Avoid double call of `afterSave` on creating of a published content
|
||||||
- Fix #6373: Use integer format for Content columns "visibility" and "state" right after creating
|
- Fix #6373: Use integer format for Content columns "visibility" and "state" right after creating
|
||||||
- Fix #6377: Forgot Password - Display email input error after successful captcha verification.
|
- Fix #6377: Forgot Password - Display email input error after successful captcha verification.
|
||||||
|
- Fix #6378: Fix visibility of the link "Uninstall" on Windows server
|
||||||
|
|
||||||
1.14.2 (May 22, 2023)
|
1.14.2 (May 22, 2023)
|
||||||
----------------------
|
----------------------
|
||||||
|
@ -434,7 +434,10 @@ class ModuleManager extends Component
|
|||||||
/** @var ModuleMarketplace $marketplaceModule */
|
/** @var ModuleMarketplace $marketplaceModule */
|
||||||
$marketplaceModule = Yii::$app->getModule('marketplace');
|
$marketplaceModule = Yii::$app->getModule('marketplace');
|
||||||
if ($marketplaceModule !== null) {
|
if ($marketplaceModule !== null) {
|
||||||
if (strpos($module->getBasePath(), Yii::getAlias($marketplaceModule->modulesPath)) !== false) {
|
// Normalize paths before comparing in order to fix issues like Windows path separators `\`
|
||||||
|
$modulePath = FileHelper::normalizePath($module->getBasePath());
|
||||||
|
$aliasPath = FileHelper::normalizePath(Yii::getAlias($marketplaceModule->modulesPath));
|
||||||
|
if (strpos($modulePath, $aliasPath) !== false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user