Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorBlueKid
    • CommentTimeApr 27th 2008
     
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 28th 2008
     
    BlueKid,

    Currently, it looks like pagination links are not generating cruft-free at all (which I think needs to be changed). I'll work on making page links clean like the rest of the URLs, but for now, try this (it's not a great fix, but it *should* work). Open 'plog-functions.php' and search for the following code in the function generate_pagination (do a search for 'pagination' and you should find it):
    // if adding arguments to mod_rewritten urls, then I need ? (question mark) before the arguments
    // otherwise I want &
    $last = substr($url,-1);

    if ($last == "/") {
    //$url = substr($url,0,-1);
    $separator = "?";
    } else {
    $separator = "&";
    }
    and change it to read:// if adding arguments to mod_rewritten urls, then I need ? (question mark) before the arguments
    // otherwise I want &
    $last = strpos($_SERVER['REQUEST_URI'], "?");

    if ($last === false) {
    //$url = substr($url,0,-1);
    $separator = "?";
    } else {
    $separator = "&";


    Let me know if that works for you.
    • CommentAuthorBlueKid
    • CommentTimeApr 29th 2008
     
    works, thanks :-)