Skip to content

Commit

Permalink
html is now valid in admin [#61]
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 2, 2010
1 parent 2c577ef commit e55afa3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions views/helpers/design.php
Expand Up @@ -34,17 +34,21 @@ 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 )
{
list( $url, $params ) = $link;
$url = $this->__createUrl( $url, $id );

unset( $params['alt'] );
$out .= $this->Html->link(
$text,
$url,
Expand Down

0 comments on commit e55afa3

Please sign in to comment.