diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/output/url.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php index 734df2c19..7e0281a43 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -20,6 +20,10 @@ $url = trim($vars['href']); if (!empty($url)) { + if ((substr_count($url, "http://") == 0) && (substr_count($url, "https://") == 0)) { + $url = "http://" . $url; + } + if (array_key_exists('is_action', $vars) && $vars['is_action']) { $url = elgg_add_action_tokens_to_url($url); } |