-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry, I didn't expect Thunderbird to reformat the code.
See class t3lib_compressor in 4.x and ResourceCompressor in 6.0 Kind regards Steffen - -- Steffen Gebert TYPO3 v4 Core Team Member TYPO3 Server Administration Team Member TYPO3 .... inspiring people to share! Get involved: http://typo3.org I work for TYPO3 solely in my spare time. If you think that my work helps you running your business, you are invited to send me a donation via PayPal to this email address. Thanks Am 8/27/12 8:31 AM, schrieb Steffen Gebert: > Hi Chris, > > yes, that's what I said. No minification for JS. > > That's the whole code. No minification: > >> public function compressJsFile($filename) { // generate the >> unique name of the file $filenameAbsolute = >> \TYPO3\CMS\Core\Utility\GeneralUtility::resolveBackPath($this->rootPath >> >> . $this->getFilenameFromMainDir($filename)); $unique = >> ($filenameAbsolute . filemtime($filenameAbsolute)) . >> filesize($filenameAbsolute); $pathinfo = pathinfo($filename); >> $targetFile = ((($this->targetDirectory . $pathinfo['filename']) >> . '-') . md5($unique)) . '.js'; // only create it, if it doesn't >> exist, yet if (!file_exists((PATH_site . $targetFile)) || >> $this->createGzipped && !file_exists(((PATH_site . $targetFile) >> . '.gzip'))) { $contents = >> \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($filenameAbsolute); >> $this->writeFileAndCompressed($targetFile, $contents); } return >> $this->relativePath . $this->returnFileReference($targetFile); } > > > > Kind regards Steffen > > -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBAgAGBQJQOxYcAAoJEIskG/rSlyw44m4IAMm5ipNfm1L+j7ixjJH/mVwc 6PBAe4QoO8GEbNnu/G6MXIoi+5ofRWr2oZjwHmPEh8j3OK5aVgmw8FzvFssAVTy6 veWDaJZIDIRwDEzQPUY5EMJyl6vRHYNk9/mbc4/UV3umtt3JvsaJgv99CKt4lPXY 5Ka/J2bfeJaOVGurSmKXOmTY2Rub4kTZk2+gpGjSyvR6bDdNLU/A1y7nna+8LNhY E/ogNUMjB43CLPRb7xxvPD2VEpydy09ueUxpeC5YMTwbAUCe+w95M0XlX6vINK3N QF+bYY0niwXZy7lMxYzAP/YsujYwZkVX+QjeVQMQDcm4oQwqEJMBWBTTbZucTUU= =LNUt -----END PGP SIGNATURE----- _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english