jirimatousek / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Code Corrections #260

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
-Open the file min/lib/Minify/Controller/MinApp.php

#find:

                    $realpath = realpath($file);
                    if ($realpath && is_file($realpath)) {

#replace with:
                    $realpath = realpath($file);
                    if (is_dir($realpath) && is_file($file)) {

And maybe you can use the parameter $_GET['b'] for groups too.

Kind Regards,

Original issue reported on code.google.com by seyhunca...@gmail.com on 15 May 2012 at 7:49

GoogleCodeExporter commented 9 years ago
Sorry, my mistake.

I found what's going wrong.
I just commented few line codes and added new line to find the file.

                    /*
                    if (0 === strpos($file, '//')) {
                        $file = $_SERVER['DOCUMENT_ROOT'] . substr($file, 1);
                    }
                    */
                    $file = $_SERVER['DOCUMENT_ROOT'] . '/' . $file;

I think "isDocRootSet" should be using in groups configurations.
Anyway, I fixed my problem :) I'm just sharing this changes, may that can help 
to other developers.

Original comment by seyhunca...@gmail.com on 15 May 2012 at 8:03

GoogleCodeExporter commented 9 years ago
Please include precisely what problem you were having, and describe your 
configuration. I cannot commit changes that may adversely affect other users.

Original comment by mrclay....@gmail.com on 9 Jun 2012 at 2:23