Skip to content

Commit

Permalink
removing modified field from featured items in cms, there is no edit …
Browse files Browse the repository at this point in the history
…page so there will never be a modified time.
  • Loading branch information
dogmatic69 committed Jan 4, 2010
1 parent 6c8c32d commit a6a1136
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions plugins/cms/controllers/features_controller.php
Expand Up @@ -30,8 +30,7 @@ function admin_index()
'Feature.id',
'Feature.content_id',
'Feature.ordering',
'Feature.created',
'Feature.modified'
'Feature.created'
),
'contain' => array(
'Content' => array(
Expand Down
6 changes: 0 additions & 6 deletions plugins/cms/views/features/admin_index.ctp
Expand Up @@ -44,9 +44,6 @@
$this->Paginator->sort( 'created' ) => array(
'style' => 'width:100px;'
),
$this->Paginator->sort( 'modified' ) => array(
'style' => 'width:100px;'
),
$this->Paginator->sort( 'ordering' ) => array(
'style' => 'width:50px;'
),
Expand All @@ -71,9 +68,6 @@
<td>
<?php echo $this->Time->niceShort( $feature['Feature']['created'] ); ?>
</td>
<td>
<?php echo $this->Time->niceShort( $feature['Feature']['modified'] ); ?>
</td>
<td>
<?php
echo $this->Cms->ordering(
Expand Down

0 comments on commit a6a1136

Please sign in to comment.