Sync with L2jServer HighFive Jun 14th 2015.
This commit is contained in:
@ -217,9 +217,8 @@ public class ClanBoard implements IWriteBoardHandler
|
||||
}
|
||||
|
||||
i = 0;
|
||||
int nbp;
|
||||
nbp = ClanTable.getInstance().getClans().length / 8;
|
||||
if ((nbp * 8) != ClanTable.getInstance().getClans().length)
|
||||
int nbp = ClanTable.getInstance().getClanCount() / 8;
|
||||
if ((nbp * 8) != ClanTable.getInstance().getClanCount())
|
||||
{
|
||||
nbp++;
|
||||
}
|
||||
|
@ -86,9 +86,9 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
CommunityBoardHandler.getInstance().addBypass(activeChar, "Home", command);
|
||||
|
||||
String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/CommunityBoard/" + customPath + "home.html");
|
||||
html = html.replaceAll("%fav_count%", String.valueOf(getFavoriteCount(activeChar)));
|
||||
html = html.replaceAll("%region_count%", String.valueOf(getRegionCount(activeChar)));
|
||||
html = html.replaceAll("%clan_count%", String.valueOf(getClansCount()));
|
||||
html = html.replaceAll("%fav_count%", Integer.toString(getFavoriteCount(activeChar)));
|
||||
html = html.replaceAll("%region_count%", Integer.toString(getRegionCount(activeChar)));
|
||||
html = html.replaceAll("%clan_count%", Integer.toString(ClanTable.getInstance().getClanCount()));
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
else if (command.startsWith("_bbstop;"))
|
||||
@ -206,13 +206,4 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
{
|
||||
return 0; // TODO: Implement.
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the clans count.
|
||||
* @return the clans count
|
||||
*/
|
||||
private static int getClansCount()
|
||||
{
|
||||
return ClanTable.getInstance().getClans().length;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user