From e55afa355140d7e7b5491dcfa6962bddf7117541 Mon Sep 17 00:00:00 2001 From: dogmatic Date: Sat, 2 Jan 2010 05:28:21 +0200 Subject: [PATCH] html is now valid in admin [#61] --- views/helpers/design.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/views/helpers/design.php b/views/helpers/design.php index 108589077..bdba6dab6 100644 --- a/views/helpers/design.php +++ b/views/helpers/design.php @@ -34,10 +34,13 @@ function infoBox( $info = array(), $truncate = 24 ) list( $image_path, $url, $params ) = $image; $url = $this->__createUrl( $url, $id ); + $url_params = $params; + unset( $url_params['alt'] ); + $out .= $this->Html->link( - $this->Html->image( $image_path ).' '.$text, + $this->Html->image( $image_path, $params ).' '.$text, $url, - $params + array( 'escape' => false ) + $url_params + array( 'escape' => false ) ); } else if ( $link ) @@ -45,6 +48,7 @@ function infoBox( $info = array(), $truncate = 24 ) list( $url, $params ) = $link; $url = $this->__createUrl( $url, $id ); + unset( $params['alt'] ); $out .= $this->Html->link( $text, $url,