-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Have ResourceCompressor calculate relative paths
Follow-up fix for TYPO3 8.x. See TYPO3/typo3@5ee15e4
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* | ||
* (c) 2010-2011 Steffen Gebert <[email protected]> | ||
* (c) 2011 Kai Vogel <[email protected]> | ||
* (c) 2013-2016 Felix Nagel <[email protected]> | ||
* (c) 2013-2017 Felix Nagel <[email protected]> | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
|
@@ -81,7 +81,11 @@ public function compressJsFile($filename) | |
$this->writeFileAndCompressed($targetFile, $minifiedContents); | ||
} | ||
|
||
return $this->relativePath.$this->returnFileReference($targetFile); | ||
if (version_compare(TYPO3_branch, '8.0', '>=')) { | ||
return $this->returnFileReference($targetFile); | ||
} else { | ||
return $this->relativePath.$this->returnFileReference($targetFile); | ||
} | ||
} | ||
|
||
/** | ||
|