Skip to content

Commit

Permalink
[411] Final fix for achievements comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Oct 24, 2010
1 parent 8bcbeec commit 246261c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions character-achievements.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 397
* @revision 411
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -70,7 +70,6 @@
$i++;
}
}
//
$name = $comparisonData[0]['name'];
}
$realmId = $utils->GetRealmIdByName($_GET['r']);
Expand Down
14 changes: 6 additions & 8 deletions includes/classes/class.characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 410
* @revision 411
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -743,20 +743,20 @@ public function GetHeader() {
'gender' => null,
'genderId' => $this->gender,
'guildName' => ($this->guild_id > 0) ? $this->guild_name : null,
'guildUrl' => ($this->guild_id > 0) ? sprintf('r=%s&gn=%s', urlencode($this->armory->currentRealmInfo['name']), urlencode($this->guild_name)) : null,
'guildUrl' => ($this->guild_id > 0) ? sprintf('r=%s&gn=%s', urlencode($this->GetRealmName()), urlencode($this->guild_name)) : null,
'lastModified' => null,
'level' => $this->level,
'name' => $this->name,
'points' => $this->GetAchievementMgr()->GetAchievementPoints(),
'prefix' => $this->character_title['prefix'],
'race' => $this->raceText,
'raceId' => $this->race,
'realm' => $this->armory->currentRealmInfo['name'],
'realm' => $this->GetRealmName(),
'suffix' => $this->character_title['suffix'],
'titleId' => $this->character_title['titleId'],
);
if(Utils::IsWriteRaw()) {
$header['guildUrl'] = ($this->guild_id > 0) ? sprintf('r=%s&gn=%s', urlencode($this->armory->currentRealmInfo['name']), urlencode($this->guild_name)) : null;
$header['guildUrl'] = ($this->guild_id > 0) ? sprintf('r=%s&gn=%s', urlencode($this->GetRealmName()), urlencode($this->guild_name)) : null;
}
return $header;
}
Expand Down Expand Up @@ -1094,8 +1094,6 @@ public function CalculateCharacterTalents() {
}
}
$talent_data = array('points' => $talent_points);
//print_r($talent_data);
//die;
return $talent_data;
}

Expand Down Expand Up @@ -2610,12 +2608,12 @@ public function GetCharacterFeed($full = false) {
if($achievement_info['categoryId'] == 81) {
// Feats of strenght
$feed_data[$i]['title'] = sprintf('%s [%s].', $_strings[14], $achievement_info['title']);
$feed_data[$i]['desc'] = sprintf('%s [<a class="achievement staticTip" href="character-achievements.xml?r=%s&amp;cn=%s" onMouseOver="setTipText(\'%s\')">%s</a>]', $_strings[14], urlencode($this->armory->currentRealmInfo['name']), urlencode($this->name), $tooltip, $achievement_info['title']);
$feed_data[$i]['desc'] = sprintf('%s [<a class="achievement staticTip" href="character-achievements.xml?r=%s&amp;cn=%s" onMouseOver="setTipText(\'%s\')">%s</a>]', $_strings[14], urlencode($this->GetRealmName()), urlencode($this->name), $tooltip, $achievement_info['title']);
}
else {
$points_string = sprintf($_strings[18], $achievement_info['points']);
$feed_data[$i]['title'] = sprintf('%s [%s].', $_strings[13], $achievement_info['title']);
$feed_data[$i]['desc'] = sprintf('%s [<a class="achievement staticTip" href="character-achievements.xml?r=%s&amp;cn=%s" onMouseOver="setTipText(\'%s\')">%s</a>] %s.', $_strings[13], urlencode($this->armory->currentRealmInfo['name']), urlencode($this->name), $tooltip, $achievement_info['title'], $points_string);
$feed_data[$i]['desc'] = sprintf('%s [<a class="achievement staticTip" href="character-achievements.xml?r=%s&amp;cn=%s" onMouseOver="setTipText(\'%s\')">%s</a>] %s.', $_strings[13], urlencode($this->GetRealmName()), urlencode($this->name), $tooltip, $achievement_info['title'], $points_string);
}
$feed_data[$i]['tooltip'] = $tooltip;
break;
Expand Down
2 changes: 1 addition & 1 deletion includes/revision_nr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
define('ARMORY_REVISION', 410);
define('ARMORY_REVISION', 411);
define('DB_VERSION', 'armory_r398');
define('CONFIG_VERSION', '0708201001');
?>

0 comments on commit 246261c

Please sign in to comment.