Show
Ignore:
Timestamp:
05/21/07 20:31:55 (18 months ago)
Author:
cfriesen
Message:

This looks better when there aren't any items for a tag.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/tags.php

    r1671 r1721  
    100100 
    101101    $gotsome = count($ids) > 0; 
     102    $taggedItems = new PaginatedItemList(); 
    102103    if ($gotsome) { 
    103104 
    104         $taggedItems = new PaginatedItemList(); 
    105105        $sqlWhere = " i.id in (".implode(",", $ids).") "; 
    106106        // include deprecated feeds while showing tags.  
     
    165165 
    166166        } else { 
    167             echo "<p style=\"height: 10em; text-align:center\">"; 
    168             printf(__('Oops! No items tagged &laquo;%s&raquo; were found.'), $hrTag); 
    169             echo "</p>"; 
     167            $GLOBALS['rss']->renderWithTemplate('index.php', 'items'); 
     168 
     169//          echo "<p style=\"height: 10em; text-align:center\">"; 
     170//          printf(__('Oops! No items tagged &laquo;%s&raquo; were found.'), $hrTag); 
     171//          echo "</p>"; 
    170172        } 
    171173        //echo "</div>\n";