Skip to content

Commit

Permalink
update status helper to use the core image helper to get image paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 4, 2010
1 parent a6a1136 commit 2030881
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/core/views/helpers/status.php
Expand Up @@ -20,7 +20,7 @@

class StatusHelper extends AppHelper
{
var $helpers = array( 'Html', 'Time' );
var $helpers = array( 'Html', 'Time', 'Image' );

protected $external = true;

Expand All @@ -40,7 +40,7 @@ public function status( $status = null )
}

$image = $this->Html->image(
'core/icons/actions/16/active.png',
$this->Image->getRelativePath( 'status', 'active' ),
$params + array(
'width' => '16px',
'alt' => __( 'On', true )
Expand All @@ -57,7 +57,7 @@ public function status( $status = null )
}

$image = $this->Html->image(
'core/icons/actions/16/disabled.png',
$this->Image->getRelativePath( 'status', 'inactive' ),
$params + array(
'width' => '16px',
'alt' => __( 'Off', true )
Expand Down

0 comments on commit 2030881

Please sign in to comment.