Skip to content

Commit 3ba31d8

Browse files
committed
Bug-fix (#3).
Changelog excerpt: - Client L10N not being pulled correctly at some lines (reported by antoniogweb); Fixed.
1 parent 0743331 commit 3ba31d8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,5 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
8585
[2023.12.01; Maikuolan]: Improved escaping.
8686

8787
[2024.03.12; Maikuolan]: Added L10N for Bosnian, Catalan, Galician, Gujarati, Croatian, and Serbian.
88+
89+
[2024.03.13; Bug-fix; Maikuolan]: Client L10N not being pulled correctly at some lines (reported by antoniogweb); Fixed (#3).

src/Web.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2023.12.01).
11+
* This file: Upload handler (last modified: 2024.03.13).
1212
*/
1313

1414
namespace phpMussel\Web;
@@ -309,7 +309,7 @@ public function scan()
309309
/** Pull relevant client-specified L10N data. */
310310
if (!empty($this->Attache)) {
311311
foreach (['denied', 'denied_reason'] as $Pull) {
312-
if (($Try = $this->ClientL10N->getString($Pull)) !== '') {
312+
if (($Try = $this->Loader->ClientL10N->getString($Pull)) !== '') {
313313
$TemplateData[$Pull] = $Try;
314314
}
315315
}
@@ -385,7 +385,7 @@ public function scan()
385385
/** Include privacy policy. */
386386
$TemplateData['pp'] = empty(
387387
$this->Loader->Configuration['legal']['privacy_policy']
388-
) ? '' : '<br /><a href="' . $this->Loader->Configuration['legal']['privacy_policy'] . '">' . $this->ClientL10N->L10N->getString('PrivacyPolicy') . '</a>';
388+
) ? '' : '<br /><a href="' . $this->Loader->Configuration['legal']['privacy_policy'] . '">' . $this->Loader->ClientL10N->L10N->getString('PrivacyPolicy') . '</a>';
389389

390390
/** Generate HTML output. */
391391
$Output = $this->Loader->parse($TemplateData, $this->Loader->readFile($TemplateFile));

0 commit comments

Comments
 (0)