function advagg_force_http_path in Advanced CSS/JS Aggregation 7.2
Convert https:// to http://.
Parameters
string $path: Path to check.
Return value
string The path.
6 calls to advagg_force_http_path()
- AdvAggCascadingStylesheetsTestCase::testRenderFile in tests/
advagg.test - Tests rendering the stylesheets.
- advagg_convert_abs_to_rel in ./
advagg.module - Converts absolute paths to be self references.
- advagg_get_github_version_json in ./
advagg.module - Get the latest version number for the remote version.
- advagg_get_github_version_txt in ./
advagg.module - Get the latest version number for the remote version.
- advagg_install_check_via_http in ./
advagg.install - Make sure http requests to css/js files work correctly.
File
- ./
advagg.module, line 4985 - Advanced CSS/JS aggregation module.
Code
function advagg_force_http_path($path) {
if (strpos($path, 'https://') === 0) {
$path = 'http://' . substr($path, 8);
}
return $path;
}