Show
Ignore:
Timestamp:
08/28/06 10:05:41 (2 years ago)
Author:
mbonetti
Message:

This was broken, too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/alltags.php

    r1544 r1550  
    6767     
    6868     
     69     
     70     
    6971    /** 
    7072     * Fills the instance data for this object: gets a hold  
     
    7678            .getTable('metatag'); 
    7779        if($this -> type == 'channel'){ 
    78             $sql .= " left join " . getTable('channels') . " c on (fid=c.id)," 
     80            $sql .= " left join " . getTable('channels') . " c on (fid=c.id) " 
    7981                ."inner join " . getTable('tag')." t "." on tid=t.id " 
    8082                . " where ttype = 'channel'"; 
    8183        }else{ 
    82             $sql .= " left join ".getTable('item')." i on (fid=i.id)," 
     84            $sql .= " left join ".getTable('item')." i on (fid=i.id) " 
    8385                ."inner join " . getTable('tag')." t "." on tid=t.id " 
    8486                ." where ttype = 'item'"; 
     
    9193        } 
    9294         
    93         $sql .= "group by tid order by tag"; 
     95        $sql .= " group by tid order by tag"; 
    9496 
    9597         
     
    161163                $taglink = $this -> makeTagLink($tag); 
    162164                $ret .= "\t<a href=\"$taglink\" title=\"$cnt " 
    163                     . ($cnt > 1 || $cnt == 0 ? LBL_ITEMS : LBL_ITEM)."\" style=\"font-size: " 
     165                    . ($cnt > 1 || $cnt == 0 ? __('items') : __('item'))."\" style=\"font-size: " 
    164166                    . (SMALLEST + ($cnt / $fontstep)).UNIT.";\">$tag</a> \n"; 
    165167            }