Changeset 1586

Show
Ignore:
Timestamp:
07/11/08 15:30:46 (5 months ago)
Author:
sambauers
Message:

Fixes to bb_uri() implementation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bb-includes/template-functions.php

    r1580 r1586  
    10891089 
    10901090        $uri_super = bb_get_uri('bb-admin/sticky.php', array('id' => $topic->topic_id, 'super' => 1), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN); 
    1091         $uri_stick = attribute_escape( bb_nonce_url( $uri_super, 'stick-topic_' . $topic->topic_id ) ); 
     1091        $uri_super = attribute_escape( bb_nonce_url( $uri_super, 'stick-topic_' . $topic->topic_id ) ); 
    10921092 
    10931093        if ( topic_is_sticky( $topic->topic_id ) ) 
     
    19231923        extract($args, EXTR_SKIP); 
    19241924 
    1925         $uri = attribute_escape( bb_get_uri('bb-login.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) ); 
     1925        $uri = attribute_escape( bb_get_uri('bb-admin/', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN) ); 
    19261926 
    19271927        return apply_filters( 'bb_get_admin_link', $before . '<a href="' . $uri . '">' . $text . '</a>' . $after, $args ); 
     
    25102510        } else { 
    25112511                $query = array( 
    2512                         'page' => $page > 1 ? $page : false 
     2512                        'view' => $v, 
     2513                        'page' => $page > 1 ? $page : false, 
    25132514                ); 
    25142515                $link = bb_get_uri('view.php', $query, $context);