Sync with L2jServer HighFive Jul 30th 2015.

This commit is contained in:
MobiusDev
2015-07-30 20:47:48 +00:00
parent b3531f47c1
commit 6185db8d5f
27 changed files with 252 additions and 258 deletions

View File

@ -32,7 +32,7 @@ import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
import com.l2jserver.gameserver.communitybbs.Manager.ForumsBBSManager;
import com.l2jserver.gameserver.communitybbs.Manager.TopicBBSManager;
public class Forum
public final class Forum
{
private static final Logger _log = Logger.getLogger(Forum.class.getName());

View File

@ -34,7 +34,7 @@ import com.l2jserver.gameserver.communitybbs.Manager.PostBBSManager;
*/
public class Post
{
private static Logger _log = Logger.getLogger(Post.class.getName());
private static final Logger _log = Logger.getLogger(Post.class.getName());
public static class CPost
{
@ -155,10 +155,10 @@ public class Post
*/
public void updatetxt(int i)
{
CPost cp = getCPost(i);
try (Connection con = ConnectionFactory.getInstance().getConnection();
PreparedStatement ps = con.prepareStatement("UPDATE posts SET post_txt=? WHERE post_id=? AND post_topic_id=? AND post_forum_id=?"))
{
CPost cp = getCPost(i);
ps.setString(1, cp.postTxt);
ps.setInt(2, cp.postId);
ps.setInt(3, cp.postTopicId);