X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/88c741c09b664260f826ff947bfaab071ac70d05..cd02bac646f42a0cb402ff2dc8240aa01f1f0fb8:/src/phinde/Helper.php diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php index 0b98521..40ea751 100644 --- a/src/phinde/Helper.php +++ b/src/phinde/Helper.php @@ -20,5 +20,15 @@ class Helper $url ); } + + public static function addSchema($url) + { + if (substr($url, 0, 7) == 'http://' + || substr($url, 0, 8) == 'https://' + ) { + return $url; + } + return 'http://' . $url; + } } ?>