Converts absolute paths to be protocol relative paths.
Parameters
string $path: Path to check.
Return value
string The path.
2 calls to advagg_path_convert_protocol_relative()
- CssCollectionOptimizer::optimize in src/
Asset/ CssCollectionOptimizer.php - JsCollectionOptimizer::optimize in src/
Asset/ JsCollectionOptimizer.php
File
-
./
advagg.module, line 639
Code
function advagg_path_convert_protocol_relative($path) {
if (strpos($path, 'https://') === 0) {
$path = substr($path, 6);
}
elseif (strpos($path, 'http://') === 0) {
$path = substr($path, 5);
}
return $path;
}