Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method Minify_Model_CSS::concat() #2

Open
aurmil opened this issue Feb 7, 2014 · 0 comments
Open

undefined method Minify_Model_CSS::concat() #2

aurmil opened this issue Feb 7, 2014 · 0 comments

Comments

@aurmil
Copy link

aurmil commented Feb 7, 2014

set minify.concat_css = true
and minify.minify_css = false
leads to
Fatal error: Call to undefined method Minify_Model_CSS::concat() in /application/modules/minify/controllers/MinifyController.php on line 80

should add

    public static function concat($css, $options = array())
    {
        if (isset($options['preserveComments'])
            && !$options['preserveComments']) {
            $css = Minify_Model_CSS_Compressor::process($css, $options);
        }
        if (! isset($options['currentDir']) && ! isset($options['prependRelativePath'])) {
            return $css;
        }
        if (isset($options['currentDir'])) {
            return Minify_Model_CSS_UriRewriter::rewrite(
                $css
                ,$options['currentDir']
                ,isset($options['docRoot']) ? $options['docRoot'] : $_SERVER['DOCUMENT_ROOT']
                ,isset($options['symlinks']) ? $options['symlinks'] : array()
            );
        } else {
            return Minify_Model_CSS_UriRewriter::prepend(
                $css
                ,$options['prependRelativePath']
            );
        }
    }

in Minify_Model_CSS class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant