You are here

public function AddThis::prefixUrlScheme in AddThis 7.4

4 calls to AddThis::prefixUrlScheme()
AddThis::getBaseBookmarkUrl in classes/AddThis.php
AddThis::getBaseWidgetJsUrl in classes/AddThis.php
AddThis::getServicesCssUrl in classes/AddThis.php
AddThis::getServicesJsonUrl in classes/AddThis.php

File

classes/AddThis.php, line 465
An AddThis-class.

Class

AddThis
@file An AddThis-class.

Code

public function prefixUrlScheme($url) {
  global $is_https;
  $url = preg_replace("(^https?:)i", "", $url);
  return ($is_https ? 'https:' : 'http:') . $url;
}