We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461f588 commit 71254baCopy full SHA for 71254ba
src/Web.php
@@ -8,7 +8,7 @@
8
* License: GNU/GPLv2
9
* @see LICENSE.txt
10
*
11
- * This file: Upload handler (last modified: 2023.04.03).
+ * This file: Upload handler (last modified: 2023.04.04).
12
*/
13
14
namespace phpMussel\Web;
@@ -387,7 +387,7 @@ public function scan()
387
/** Generate HTML output. */
388
$Output = $this->Loader->parse($TemplateData, $this->Loader->readFile($TemplateFile));
389
if (preg_match_all('~\{([A-Za-z\d_ -]+)\}~', $Output, $Matches)) {
390
- foreach ($Matches[1] as $Key) {
+ foreach (array_unique($Matches[1]) as $Key) {
391
if (($Value = $this->Loader->ClientL10N->getString($Key)) !== '') {
392
$Output = str_replace('{' . $Key . '}', $Value, $Output);
393
}
0 commit comments