protected function forceAbsRelativePathsInCss($css)
    {
        if (!($css = (string) $css)) {
            return $css; // Nothing to do.
        }
        $regex = '/(?:[a-z0-9]+\:)?\/\/'.$this->pregQuote($this->currentUrlHost()).'\//ui';

        return preg_replace($regex, '/', $css); // Absolute relative paths.
    }
protected function forceAbsRelativePathsInCss($css)
    {
        if (!($css = (string) $css)) {
            return $css; // Nothing to do.
        }
        $regex = '/(?:[a-z0-9]+\:)?\/\/'.$this->pregQuote($this->currentUrlHost()).'\//ui';

        return preg_replace($regex, '/', $css); // Absolute relative paths.
    }
protected function forceAbsRelativePathsInCss ( $ css ) { if ( ! ( $ css = ( string ) $ css ) ) { return $ css ; // Nothing to do. } $ regex = '/(?:[a-z0-9]+\:)?\/\/' . $ this -> pregQuote ( $ this -> currentUrlHost ( ) ) . '\//ui' ; return preg_replace ( $ regex , '/' , $ css ) ; // Absolute relative paths. }
Force absolute relative paths in CSS.

@since 150511 Improving CSS handling.

@param string $css Raw CSS code.

@return string CSS code (possibly altered here).
Force absolute relative paths in CSS .