Convert https:// to http://.

Paramètres

string $path: Path to check.

Return value

string The path.

6 calls to advagg_force_http_path()
AdvAggCascadingStylesheetsTestCase::testRenderFile dans tests/advagg.test
Tests rendering the stylesheets.
advagg_convert_abs_to_rel dans ./advagg.module
Converts absolute paths to be self references.
advagg_get_github_version_json dans ./advagg.module
Get the latest version number for the remote version.
advagg_get_github_version_txt dans ./advagg.module
Get the latest version number for the remote version.
advagg_install_check_via_http dans ./advagg.install
Make sure http requests to css/js files work correctly.

... See full list

Fichier

./advagg.module, line 4986

Code

function advagg_force_http_path($path) {
    if (strpos($path, 'https://') === 0) {
        $path = 'http://' . substr($path, 8);
    }
    return $path;
}