From: nickw Date: Mon, 24 May 2010 17:24:16 +0000 (+0000) Subject: Ensuring text displays on URL view for both "value" and "html" sent as property. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=dbb280602eec2f72e0e9bc6bb7e4594561271346;p=lorea%2Felgg.git Ensuring text displays on URL view for both "value" and "html" sent as property. git-svn-id: http://code.elgg.org/elgg/trunk@6181 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/views/default/output/url.php b/views/default/output/url.php index 19ad331e1..c5058f18e 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -19,6 +19,9 @@ */ $url = trim($vars['href']); +if (!$url and isset($vars['value'])) { + $url = trim($vars['value']); +} if (!empty($url)) { if (array_key_exists('target', $vars) && $vars['target']) {