Changeset 1727 for trunk/gregarius/cls

Show
Ignore:
Timestamp:
06/08/07 19:57:58 (16 months ago)
Author:
cfriesen
Message:

Some mod-rewrite rewriting. Someone scream if I forgot somewhere.

Location:
trunk/gregarius/cls
Files:
3 modified

Legend:

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

    r1668 r1727  
    8888 
    8989        if (getConfig('rss.output.usemodrewrite')) { 
    90             $this->rlink = getPath(rss_uri($title)) . "/"; 
     90            $this->rlink = getPath("/feed/".rss_uri($title)) . "/"; 
    9191        } else { 
    9292            $this->rlink = getPath()."feed.php?channel=$id"; 
     
    137137     
    138138    function makeFolderUrl($fn) { 
    139         return getPath( 
     139        return getPath("folder/". 
    140140            preg_replace('#\s#','_',sanitize($fn,RSS_SANITIZER_URL)) 
    141141        ) .'/'; 
  • trunk/gregarius/cls/wrappers/feed.php

    r1181 r1727  
    8484     
    8585    if (getConfig('rss.output.usemodrewrite')) { 
    86         return getPath().$GLOBALS['rss']->currentFeed->escapedTitle ."/"; 
     86        return getPath()."/feed/".$GLOBALS['rss']->currentFeed->escapedTitle ."/"; 
    8787    }  
    8888    return getPath()."feed.php?channel=".$GLOBALS['rss']->currentFeed->cid ; 
  • trunk/gregarius/cls/wrappers/item.php

    r1625 r1727  
    5757    if ($GLOBALS['rss'] -> currentItem ->escapedTitle != "" && getConfig('rss.output.usemodrewrite')) { 
    5858        return getPath() 
    59             .$GLOBALS['rss'] -> currentItem -> parent->escapedTitle 
     59            ."/item/".$GLOBALS['rss'] -> currentItem -> parent->escapedTitle 
    6060            ."/$ply/$plm/$pld/" 
    6161            .$GLOBALS['rss'] -> currentItem -> escapedTitle;