Skip to content

Commit

Permalink
Merge pull request #14483 from Elgg/5.x
Browse files Browse the repository at this point in the history
upmerge 5.x into master
  • Loading branch information
jdalsem committed Oct 11, 2023
2 parents bd889ef + 5d68361 commit 332b9b0
Show file tree
Hide file tree
Showing 33 changed files with 943 additions and 361 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.7"

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
Expand All @@ -20,6 +25,5 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/pip-requirements.txt
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
<a name="5.0.7"></a>
### 5.0.7 (2023-10-10)

#### Contributors

* Jeroen Dalsem (5)
* Jerôme Bakker (2)

#### Bug Fixes

* **forms:** prevent double submit on comment forms ([1b057186](https://github.com/Elgg/Elgg/commit/1b057186899ceb119b461613f65ac4b1f82e9b3b))
* **icons:** retry icon resize after failure ([e04e396b](https://github.com/Elgg/Elgg/commit/e04e396b428b850b173fbcc42f3ac4efeb4d08d1))


<a name="5.0.6"></a>
### 5.0.6 (2023-09-07)

#### Contributors

* Jerôme Bakker (2)
* Nikolai Shcherbin (1)

#### Bug Fixes

* **ckeditor:** early abort object mentions on closing bracket ([b397601c](https://github.com/Elgg/Elgg/commit/b397601cd21212698c16e0ab00eb96d0e9f9679f))
* **docs:** document correct function ([e9ba84a1](https://github.com/Elgg/Elgg/commit/e9ba84a15c4aeaeb9892ec252bdb5543135251fe))


<a name="5.0.5"></a>
### 5.0.5 (2023-08-16)

Expand Down
2 changes: 1 addition & 1 deletion actions/admin/site/icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
elgg_save_config('font_awesome_zip', $zip->getClientOriginalName());
}

return elgg_ok_response(elgg_echo('save:success'));
return elgg_ok_response('', elgg_echo('save:success'));
34 changes: 34 additions & 0 deletions actions/admin/site/theme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Symfony\Component\HttpFoundation\File\UploadedFile;

$vars = (array) get_input('vars', [], false);
$vars = array_filter($vars);

$available_config = _elgg_services()->cssCompiler->getCssVars([], false);
foreach ($vars as $name => $value) {
if (empty($value)) {
unset($vars[$name]);
continue;
}

if (!array_key_exists($name, $available_config)) {
unset($vars[$name]);
continue;
}

if (strtolower($value) === strtolower((string) $available_config[$name])) {
unset($vars[$name]);
continue;
}
}

if (empty($vars)) {
elgg_remove_config('custom_theme_vars');
} else {
elgg_save_config('custom_theme_vars', $vars);
}

elgg_invalidate_caches();

return elgg_ok_response('', elgg_echo('save:success'));
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elgg/elgg",
"version": "5.0.5",
"version": "5.0.7",
"description": "Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.",
"license": "GPL-2.0-only",
"minimum-stability": "dev",
Expand All @@ -13,7 +13,7 @@
"ext-json": "*",
"ext-xml": "*",
"ckeditor/ckeditor": "~4.20.0",
"composer/semver": "~3.3.0",
"composer/semver": "~3.4.0",
"css-crush/css-crush": "~4.1.0",
"doctrine/dbal": "~3.4.4",
"eloquent/composer-config-reader": "~3.0.0",
Expand Down Expand Up @@ -41,7 +41,7 @@
"npm-asset/requirejs": "^2.3.6",
"npm-asset/requirejs-text": "^2.0.4",
"npm-asset/sprintf-js": "~1.1.2",
"npm-asset/yaireo--tagify": "~4.16.0",
"npm-asset/yaireo--tagify": "~4.17.0",
"pelago/emogrifier": "~7.0.0",
"peppeocchi/php-cron-scheduler": "~4.0",
"php-di/php-di": "~6.4.0",
Expand All @@ -54,7 +54,7 @@
"symfony/mime": "~5.3",
"symfony/routing": "~5.3",
"symfony/var-dumper": "~5.3",
"vanilla/htmlawed": "~2.2.0"
"vanilla/htmlawed": "2.2.5"
},
"config": {
"process-timeout": 0,
Expand Down

0 comments on commit 332b9b0

Please sign in to comment.