Skip to content

Commit

Permalink
Reconstruct some of the title data for backwards compatablity.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwood committed Jul 12, 2009
1 parent a4463cd commit b16cb9d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/wowr/character.rb
Expand Up @@ -135,7 +135,7 @@ class InfoCharacter < Character

# character_info
attr_reader :char_url,
# :title, :known_titles,
:title, :known_titles,
:faction, :faction_id,
:arena_teams,
:last_modified,
Expand Down Expand Up @@ -245,8 +245,14 @@ def character_info(elem)
def character_tab(elem)
# <title value=""/>
#@title = (elem%'title')[:value] == "" ? nil : (elem%'title')[:value]

#@known_titles = []
if (@prefix || @suffix)
@title = (@prefix ? @prefix : "") + "%s" + (@suffix ? @suffix : "")
end


@known_titles = []

@known_titles << @title if (@title)

#@known_titles << @title if (@title)
#(elem%'knownTitles'/:title).each do |entry|
Expand Down

0 comments on commit b16cb9d

Please sign in to comment.