benjamw / battleship

A PHP port of the board game Battleship

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bugs fix for install

opened this issue · comments

FIX_IT=> config.php.sample INSERT INTO bs2_settings (setting, value, notes, sort) VALUES
('expire_finished_games', '7', 'Number of days until finished games are deleted (0 = off)', 128);

     FIX_IT=> includes/config.php.sample   on line 43                       
     define('T_BATTLESHIP'   , $master_prefix . $game_prefix . 'bs_player'); // the battleship player data table
              BY
              define('T_BATTLESHIP'   , $master_prefix . $game_prefix . 'player'); // the battleship player data table

To enjoy a nice install :)

Thank for your job
an sry for my english i'm french

@++

That extra prefix for the battleship player table is deliberate, and is part of the base table name. Please do not change that. The reason that extra prefix is there, is in case a user clears the $game_prefix, it ensures that the bs_player table name does not collide with the main player table name.

As for the other (top) fix, I'll check and see if that entry is required for this game, and add it in if needed.

Thanks.

The top fix has been committed to the repo. Thanks.