NS_WP_TALK ) { return false; } return true; } function isTalk( $index ) { if ( NS_TALK == $index || NS_USER_TALK == $index || NS_WP_TALK == $index || NS_IMAGE_TALK == $index || NS_MEDIAWIKI_TALK == $index ) { return true; } return false; } # Get the talk namespace corresponding to the given index # function getTalk( $index ) { if ( Namespace::isTalk( $index ) ) { return $index; } else { # FIXME return $index + 1; } } function getSubject( $index ) { if ( Namespace::isTalk( $index ) ) { return $index - 1; } else { return $index; } } } ?>