You are here

protected function purl_subdomain::base_url in Persistent URL 7

Same name and namespace in other branches
  1. 6 includes/purl_subdomain.inc \purl_subdomain::base_url()
1 call to purl_subdomain::base_url()
purl_subdomain::rewrite in includes/purl_subdomain.inc
Responsible for rewriting outgoing links. Note: it's this functions job to make sure it doesn't alter a link that has already been treated.

File

includes/purl_subdomain.inc, line 63

Class

purl_subdomain
Subdomain prefixing.

Code

protected function base_url() {
  global $base_url;
  $base = variable_get('purl_base_domain', $base_url);
  return !empty($base) ? $base : $base_url;
}