mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Merge branch 'master' into develop
This commit is contained in:
commit
6bf2c8d96a
@ -8,6 +8,7 @@ HumHub Changelog
|
||||
- Fix #5107: Fix captcha client validation after request new code
|
||||
- Fix #22: Fix misplaced OEmbed provider buttons on general settings form
|
||||
- Fix #5130: Don't require type for first param of the function ProsemirrorRichText::replaceLinkExtension()
|
||||
- Fix #5155: Open basedir restriction error in with PHP 7.4.21/8.0.8
|
||||
|
||||
|
||||
1.8.2 (April 26, 2021)
|
||||
|
@ -339,8 +339,11 @@ class View extends \yii\web\View
|
||||
{
|
||||
if (strpos($url, '?') === false) {
|
||||
$file = str_replace('@web', '@webroot', $url);
|
||||
$file = Yii::getAlias($file);
|
||||
if (substr($file, 0, 1) === '/') {
|
||||
$file = '@webroot' . $file;
|
||||
}
|
||||
|
||||
$file = Yii::getAlias($file);
|
||||
if (file_exists($file)) {
|
||||
$url .= '?v=' . filemtime($file);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user