Skip to content

Commit 579b34d

Browse files
Bugfix #143 (#151)
* Namespace-Fehler bereinigt * Unnötigen Kommentar gelöscht * Backslashes in Urls #143 (nur Windows) * Changelog
1 parent 38a669d commit 579b34d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- BugFix:
66
- Fehler in der Namespace-Unterstützung (Dateistruktur, Cronjob-Registrierung) bereinigt.
7+
- behebt [#143](https://github.com/FriendsOfREDAXO/geolocation/issues/143) (@tyrant88)
78

89
## 25.06.2023 2.1.2
910

lib/asset_packer.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* AssetPacker - Support für REDAXO-Addons
44
*
55
* @author Christoph Böcker <https://github.com/christophboecker/>
6-
* @version 1.3.3
6+
* @version 1.3.4
77
* @copyright Christoph Böcker
88
* @license Die AssetPacker-Klassen: MIT-License <https://opensource.org/licenses/MIT>
99
* Die JS-Minifier-Klasse: BSD 3-Clause License <https://github.com/tedivm/JShrink/blob/master/LICENSE>
@@ -461,7 +461,9 @@ public function minify( string $content ) : string
461461
public function getTag( string $media = 'all' ) : string
462462
{
463463
// Pathname relativ zu rex_path
464-
$asset = \rex_url::base( \rex_path::relative( $this->target ) );
464+
// für Windows: \ in / ändern
465+
$asset = str_replace('\\','/',\rex_path::relative( $this->target));
466+
$asset = \rex_url::base( $asset );
465467

466468
if (!\rex::isDebugMode() && \rex::isBackend() && $this->timestamp)
467469
{

0 commit comments

Comments
 (0)