1
0
mirror of https://github.com/mrclay/minify.git synced 2025-09-09 13:41:01 +02:00

min/index.php : fix Issue 92

This commit is contained in:
Steve Clay
2009-03-04 16:28:14 +00:00
parent 9ed412fe81
commit f694969342

View File

@@ -24,14 +24,14 @@ Minify::setCache(
);
if ($min_documentRoot) {
$SERVER['DOCUMENT_ROOT'] = $min_documentRoot;
$_SERVER['DOCUMENT_ROOT'] = $min_documentRoot;
} elseif (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // IIS may need help
}
// normalize paths in symlinks
foreach ($min_symlinks as $link => $target) {
$link = str_replace('//', realpath($SERVER['DOCUMENT_ROOT']), $link);
$link = str_replace('//', realpath($_SERVER['DOCUMENT_ROOT']), $link);
$link = strtr($link, '/', DIRECTORY_SEPARATOR);
$min_serveOptions['minifierOptions']['text/css']['symlinks'][$link] = realpath($target);
}