Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/30/2008 10:31:06 AM (18 years ago)
Author:
sambauers
Message:

Various optimisations and typo fixes - Fixes #842 - props momo360modena

File:
1 edited

Legend:

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

    r1376 r1385  
    129129
    130130function post_form( $h2 = '' ) {
    131     global $bb, $page, $topic, $forum;
     131    global $page, $topic, $forum;
    132132    $add = topic_pages_add();
    133133    if ( empty($h2) && false !== $h2 ) {
     
    170170
    171171function edit_form() {
    172     global $bb_post, $topic_title;
     172    global $bb_post;
    173173    echo "<form class='postform edit-form' method='post' action='" . bb_get_option('uri')  . "bb-edit.php'>\n";
    174174    echo "<fieldset>\n";
     
    685685        return false;
    686686
    687     if ( $r = $bb_forums_loop->step() ) {
     687    if ( $bb_forums_loop->step() ) {
    688688        $GLOBALS['forum'] =& $bb_forums_loop->elements[key($bb_forums_loop->elements)]; // Globalize the current forum object
    689689    } else {
     
    796796
    797797function topic_posts( $id = 0 ) {
    798     echo apply_filters( 'topic_posts', get_topic_posts( $id = 0 ), get_topic_id( $id ) );
     798    echo apply_filters( 'topic_posts', get_topic_posts( $id ), get_topic_id( $id ) );
    799799}
    800800
     
    893893
    894894function get_page_number_links($page, $total) {
    895     $r = '';
    896895    $args = array();
    897896    $uri = $_SERVER['REQUEST_URI'];
     
    19591958    extract($args, EXTR_SKIP);
    19601959
    1961     if ( !$forums = bb_forums( $args ) )
     1960    if ( !bb_forums( $args ) )
    19621961        return;
    19631962
Note: See TracChangeset for help on using the changeset viewer.