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
366e2c1c5a
@ -1,6 +1,11 @@
|
|||||||
HumHub Changelog
|
HumHub Changelog
|
||||||
================
|
================
|
||||||
|
|
||||||
|
1.8.3 (Unreleased)
|
||||||
|
----------------------
|
||||||
|
- Fix #29: Fix login form view on browser back button after footer link
|
||||||
|
- Fix #5066: Fix pin and archive global content without container
|
||||||
|
|
||||||
|
|
||||||
1.8.2 (April 26, 2021)
|
1.8.2 (April 26, 2021)
|
||||||
----------------------
|
----------------------
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
"npm-asset/bootstrap-tour": "0.11.0",
|
"npm-asset/bootstrap-tour": "0.11.0",
|
||||||
"npm-asset/clipboard-polyfill": "3.0.*",
|
"npm-asset/clipboard-polyfill": "3.0.*",
|
||||||
"npm-asset/font-awesome": "^4.7.0",
|
"npm-asset/font-awesome": "^4.7.0",
|
||||||
"npm-asset/humhub-prosemirror-richtext": "1.1.3",
|
"npm-asset/humhub-prosemirror-richtext": "1.1.5",
|
||||||
"npm-asset/imagesloaded": "*",
|
"npm-asset/imagesloaded": "*",
|
||||||
"npm-asset/intersection-observer": "^0.7.0",
|
"npm-asset/intersection-observer": "^0.7.0",
|
||||||
"npm-asset/jplayer": "2.9.*",
|
"npm-asset/jplayer": "2.9.*",
|
||||||
|
6
composer.lock
generated
6
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "8ce4dc3e98c455997a22f12c165d2cd9",
|
"content-hash": "e25fa2ed3ad8e6c99542573587da0caa",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "bower-asset/bootstrap",
|
"name": "bower-asset/bootstrap",
|
||||||
@ -3392,10 +3392,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "npm-asset/humhub-prosemirror-richtext",
|
"name": "npm-asset/humhub-prosemirror-richtext",
|
||||||
"version": "1.1.3",
|
"version": "1.1.5",
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "tar",
|
"type": "tar",
|
||||||
"url": "https://registry.npmjs.org/humhub-prosemirror-richtext/-/humhub-prosemirror-richtext-1.1.3.tgz"
|
"url": "https://registry.npmjs.org/humhub-prosemirror-richtext/-/humhub-prosemirror-richtext-1.1.5.tgz"
|
||||||
},
|
},
|
||||||
"type": "npm-asset",
|
"type": "npm-asset",
|
||||||
"license": [
|
"license": [
|
||||||
|
18
package-lock.json
generated
18
package-lock.json
generated
@ -1023,12 +1023,6 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"lodash": "^4.17.10"
|
"lodash": "^4.17.10"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"lodash": {
|
|
||||||
"version": "4.17.19",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
|
|
||||||
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
|
|
||||||
"dev": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1235,9 +1229,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"hosted-git-info": {
|
"hosted-git-info": {
|
||||||
"version": "2.5.0",
|
"version": "2.8.9",
|
||||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
|
||||||
"integrity": "sha1-bWDjSzq7yDEwYsO3mO+NkBoHrzw=",
|
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"iconv-lite": {
|
"iconv-lite": {
|
||||||
@ -1551,9 +1545,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.20",
|
"version": "4.17.21",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||||
"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
|
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"longest": {
|
"longest": {
|
||||||
|
@ -371,6 +371,11 @@ class Content extends ActiveRecord implements Movable, ContentOwner
|
|||||||
*/
|
*/
|
||||||
public function canPin()
|
public function canPin()
|
||||||
{
|
{
|
||||||
|
// Currently global content can not be pinned
|
||||||
|
if (!$this->getContainer()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->isArchived()) {
|
if ($this->isArchived()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -410,12 +415,12 @@ class Content extends ActiveRecord implements Movable, ContentOwner
|
|||||||
public function canArchive()
|
public function canArchive()
|
||||||
{
|
{
|
||||||
// Currently global content can not be archived
|
// Currently global content can not be archived
|
||||||
if (!$this->contentcontainer_id) {
|
if (!$this->getContainer()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// No need to archive content on an archived container, content is marked as archived already
|
// No need to archive content on an archived container, content is marked as archived already
|
||||||
if ($this->content->content->getContainer()->isArchived()) {
|
if ($this->getContainer()->isArchived()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ $i = 0;
|
|||||||
<div class="text text-center powered">
|
<div class="text text-center powered">
|
||||||
<?php if ($numItems > 0): ?>
|
<?php if ($numItems > 0): ?>
|
||||||
<?php foreach ($items as $item): ?>
|
<?php foreach ($items as $item): ?>
|
||||||
<?= Html::a($item['label'], $item['url']); ?>
|
<?= Html::a($item['label'], $item['url'], ['data-pjax-prevent' => true]); ?>
|
||||||
|
|
||||||
<?php if (++$i !== $numItems): ?>
|
<?php if (++$i !== $numItems): ?>
|
||||||
·
|
·
|
||||||
|
Loading…
x
Reference in New Issue
Block a user