more https support, and dedupe get_image/thumb_link

This commit is contained in:
Shish
2015-06-01 10:57:56 +01:00
parent 21d96db771
commit 8d2b97b72f
2 changed files with 21 additions and 35 deletions

View File

@@ -402,7 +402,7 @@ function modify_url($url, $changes) {
* @return string
*/
function make_http(/*string*/ $link) {
if(strpos($link, "ttp://") > 0) {
if(strpos($link, "://") > 0) {
return $link;
}