Converts absolute paths to be protocol relative paths.
Parameters
string $path: Path to check.
Return value
string The path.
4 calls to advagg_convert_abs_to_protocol()
- advagg_convert_abs_to_rel in ./
advagg.module - Converts absolute paths to be self references.
- advagg_file_create_url in ./
advagg.module - Wrapper around file_create_url() to do post-processing on the created url.
- advagg_pre_render_scripts in ./
advagg.module - Callback for pre_render to add elements needed for JavaScript to be rendered.
- advagg_pre_render_styles in ./
advagg.module - A #pre_render callback to add elements needed for CSS tags to be rendered.
File
-
./
advagg.module, line 4951
Code
function advagg_convert_abs_to_protocol($path) {
if (strpos($path, 'http://') === 0) {
$path = substr($path, 5);
}
return $path;
}