Skip to content

Commit 41f04f5

Browse files
committed
Merge branch '6.1' into 6.2
2 parents 9f25a63 + 70f688b commit 41f04f5

File tree

67 files changed

+782
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+782
-193
lines changed

com.woltlab.wcf/package.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<packagedescription>Free CMS and web-framework, designed for awesome websites and communities.</packagedescription>
66
<packagedescription language="de">Freies CMS und Web-Framework, das eindrucksvolle Websites und Communities ermöglicht.</packagedescription>
77
<isapplication>1</isapplication>
8-
<version>6.1.3 dev 2</version>
9-
<date>2024-12-31</date>
8+
<version>6.1.3</version>
9+
<date>2025-01-06</date>
1010
</packageinformation>
1111

1212
<authorinformation>
@@ -110,4 +110,10 @@ tar cvf com.woltlab.wcf/files_pre_check.tar -C wcfsetup/install/files/ \
110110
<instruction type="file">files_update.tar</instruction>
111111
<instruction type="template">templates_update.tar</instruction>
112112
</instructions>
113+
<instructions type="update" fromversion="6.1.3 dev 2">
114+
<instruction type="file">files_update.tar</instruction>
115+
</instructions>
116+
<instructions type="update" fromversion="6.1.3 dev 3">
117+
<instruction type="file">files_update.tar</instruction>
118+
</instructions>
113119
</package>

ts/WoltLabSuite/Core/Ajax/Status.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
77
*/
88

9+
import { getPageOverlayContainer } from "../Helper/PageOverlay";
10+
911
class AjaxStatus {
1012
private _activeRequests = 0;
1113
private readonly _overlay: Element;
@@ -20,7 +22,7 @@ class AjaxStatus {
2022
loadingIndicator.size = 48;
2123
this._overlay.append(loadingIndicator);
2224

23-
document.body.append(this._overlay);
25+
getPageOverlayContainer().append(this._overlay);
2426
}
2527

2628
show(): void {

wcfsetup/install/files/acp/templates/usersAwaitingApprovalAcpDashboardBox.tpl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
{/foreach}
2121
</ul>
2222

23-
{if $usersAwaitingApproval > $users|count}
24-
<div class="acpDashboardBox__cta">
25-
<a href="{link controller='UserQuickSearch' mode='pendingActivation'}{/link}" class="button small">
26-
{lang}wcf.global.button.showAll{/lang}
27-
</a>
28-
</div>
29-
{/if}
23+
<div class="acpDashboardBox__cta">
24+
<a href="{link controller='UserQuickSearch' mode='pendingActivation'}{/link}" class="button small">
25+
{lang}wcf.global.button.showAll{/lang}
26+
</a>
27+
</div>

wcfsetup/install/files/js/WoltLabSuite.Core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/js/WoltLabSuite.Core.tiny.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,19 @@ private function getForm(): Psr15DialogForm
6868
static::class,
6969
WCF::getLanguage()->get('wcf.acp.dashboard.configure')
7070
);
71+
72+
$boxOptions = $this->getBoxOptions();
73+
$selectedBoxNames = \array_filter(
74+
$this->getSelectedBoxNames(),
75+
fn(string $boxName) => isset($boxOptions[$boxName])
76+
);
77+
7178
$form->appendChildren([
7279
$this->getConfigurationFormField()
7380
->id('boxes')
7481
->required()
75-
->options($this->getBoxOptions(), false, false)
76-
->value($this->getSelectedBoxNames()),
82+
->options($boxOptions, false, false)
83+
->value($selectedBoxNames),
7784
]);
7885

7986
$form->build();
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace wcf\http;
6+
7+
use Laminas\HttpHandlerRunner\Emitter\EmitterInterface;
8+
use Laminas\HttpHandlerRunner\Emitter\SapiEmitterTrait;
9+
use Psr\Http\Message\ResponseInterface;
10+
11+
use function flush;
12+
13+
/**
14+
* This emitter implementation is a copy of `Laminas\HttpHandlerRunner\Emitter\
15+
* SapiStreamEmitter` with the range handling being ripped out. The handling
16+
* of the `content-range` must be handled by the creator of the range itself.
17+
*
18+
* See https://github.com/laminas/laminas-httphandlerrunner/issues/22
19+
*/
20+
class SapiStreamEmitter implements EmitterInterface
21+
{
22+
use SapiEmitterTrait;
23+
24+
public function __construct(
25+
/** @param int Maximum output buffering size for each iteration. */
26+
private int $maxBufferLength = 8192
27+
) {}
28+
29+
/**
30+
* Emits a response for a PHP SAPI environment.
31+
*
32+
* Emits the status line and headers via the header() function, and the
33+
* body content via the output buffer.
34+
*/
35+
public function emit(ResponseInterface $response): bool
36+
{
37+
$this->assertNoPreviousOutput();
38+
$this->emitHeaders($response);
39+
$this->emitStatusLine($response);
40+
41+
flush();
42+
43+
$this->emitBody($response);
44+
45+
return true;
46+
}
47+
48+
/**
49+
* Emit the message body.
50+
*/
51+
private function emitBody(ResponseInterface $response): void
52+
{
53+
$body = $response->getBody();
54+
55+
if ($body->isSeekable()) {
56+
$body->rewind();
57+
}
58+
59+
if (! $body->isReadable()) {
60+
echo $body;
61+
return;
62+
}
63+
64+
while (! $body->eof()) {
65+
echo $body->read($this->maxBufferLength);
66+
}
67+
}
68+
}

wcfsetup/install/files/lib/system/WCF.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
\mb_language('uni');
8080

8181
// define current woltlab suite version
82-
\define('WCF_VERSION', '6.1.3 dev 2');
82+
\define('WCF_VERSION', '6.1.3');
8383

8484
// define current unix timestamp
8585
\define('TIME_NOW', \time());

wcfsetup/install/files/lib/system/api/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
}
1111
},
1212
"require": {
13-
"cuyz/valinor": "^1.14.1",
13+
"cuyz/valinor": "^1.14.2",
1414
"dragonmantank/cron-expression": "^3.4.0",
1515
"erusev/parsedown": "^1.7.4",
1616
"ezyang/htmlpurifier": "^4.18",
1717
"guzzlehttp/guzzle": "^7.9.2",
1818
"guzzlehttp/psr7": "^2.7.0",
1919
"laminas/laminas-diactoros": "^3.5.0",
2020
"laminas/laminas-httphandlerrunner": "^2.11.0",
21-
"laminas/laminas-progressbar": "^2.14",
21+
"laminas/laminas-progressbar": "^2.14.1",
2222
"minishlink/web-push": "^v9.0.1",
2323
"nikic/fast-route": "2.0.0-beta1",
2424
"paragonie/constant_time_encoding": "^3.0",
@@ -33,6 +33,7 @@
3333
"sebastian/diff": "^5.1.1",
3434
"symfony/polyfill-php82": "^1.31.0",
3535
"symfony/polyfill-php83": "^1.31",
36+
"symfony/polyfill-php84": "^1.31",
3637
"willdurand/negotiation": "^3.1"
3738
},
3839
"replace": {

0 commit comments

Comments
 (0)