Changeset 2921

Show
Ignore:
Timestamp:
12/21/10 13:13:12 (4 years ago)
Author:
tboutell
Message:

Fixed #793: the media _showCategories partial was using ->name rather than ->slug, which breaks as soon as you hit a non-slug character in a name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.5/modules/aMedia/templates/_showCategories.php

    r2474 r2921  
    77<?php $links = array() ?> 
    88  <?php foreach ($categories as $category): ?> 
    9   <?php $links[] = link_to($category, "aMedia/index?" . http_build_query(array("category" => $category->name))) ?> 
     9  <?php $links[] = link_to($category, "aMedia/index?" . http_build_query(array("category" => $category->slug))) ?> 
    1010<?php endforeach ?> 
    1111<?php echo implode(__(", ", null, 'apostrophe'), $links) ?>