]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Ensuring text displays on URL view for both "value" and "html" sent as property.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 17:24:16 +0000 (17:24 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 17:24:16 +0000 (17:24 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6181 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/output/url.php

index 19ad331e1ec3f2151560b31d4881048601d02eb3..c5058f18e6ac1c85c9fcf6efcc47a175eb22c7ac 100644 (file)
@@ -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']) {