Skip to content

Commit

Permalink
Bugfix #143 (#151)
Browse files Browse the repository at this point in the history
* Namespace-Fehler bereinigt

* Unnötigen Kommentar gelöscht

* Backslashes in Urls #143 (nur Windows)

* Changelog
  • Loading branch information
christophboecker authored Feb 17, 2024
1 parent 38a669d commit 579b34d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## 25.06.2023 2.1.2

Expand Down
6 changes: 4 additions & 2 deletions lib/asset_packer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* AssetPacker - Support für REDAXO-Addons
*
* @author Christoph Böcker <https://github.com/christophboecker/>
* @version 1.3.3
* @version 1.3.4
* @copyright Christoph Böcker
* @license Die AssetPacker-Klassen: MIT-License <https://opensource.org/licenses/MIT>
* Die JS-Minifier-Klasse: BSD 3-Clause License <https://github.com/tedivm/JShrink/blob/master/LICENSE>
Expand Down Expand Up @@ -461,7 +461,9 @@ public function minify( string $content ) : string
public function getTag( string $media = 'all' ) : string
{
// Pathname relativ zu rex_path
$asset = \rex_url::base( \rex_path::relative( $this->target ) );
// für Windows: \ in / ändern
$asset = str_replace('\\','/',\rex_path::relative( $this->target));
$asset = \rex_url::base( $asset );

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

0 comments on commit 579b34d

Please sign in to comment.