Converts absolute paths to be protocol relative paths.

Paramètres

string $path: Path to check.

Return value

string The path.

4 calls to advagg_convert_abs_to_protocol()
advagg_convert_abs_to_rel dans ./advagg.module
Converts absolute paths to be self references.
advagg_file_create_url dans ./advagg.module
Wrapper around file_create_url() to do post-processing on the created url.
advagg_pre_render_scripts dans ./advagg.module
Callback for pre_render to add elements needed for JavaScript to be rendered.
advagg_pre_render_styles dans ./advagg.module
A #pre_render callback to add elements needed for CSS tags to be rendered.

Fichier

./advagg.module, line 4951

Code

function advagg_convert_abs_to_protocol($path) {
    if (strpos($path, 'http://') === 0) {
        $path = substr($path, 5);
    }
    return $path;
}