Skip to content

Commit

Permalink
#961 And add the final new config items
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Nov 9, 2014
1 parent 1bd24d5 commit c997751
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions db_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,22 @@ function stripslashes_array($array) {
// Since 0.0.3263: Add the num_pms column to the users table
$db->add_field('users', 'num_pms', 'INT(10) UNSIGNED', false, '0', 'num_posts') or error('Unable to add column "num_pms" to table "users"', __FILE__, __LINE__, $db->error());

// Since 0.0.3265: Add o_pms_enabled/experimental feature
if (!array_key_exists('o_pms_enabled', $luna_config))
$db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\'o_pms_enabled\', \'1\')') or error('Unable to insert config value \'o_pms_enabled\'', __FILE__, __LINE__, $db->error());

// Since 0.0.3265: Add o_pms_mess_per_page/experimental feature
if (!array_key_exists('o_pms_mess_per_page', $luna_config))
$db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\'o_pms_mess_per_page\', \'10\')') or error('Unable to insert config value \'o_pms_mess_per_page\'', __FILE__, __LINE__, $db->error());

// Since 0.0.3265: Add o_pms_mess_per_page/experimental feature
if (!array_key_exists('o_pms_mess_per_page', $luna_config))
$db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\'o_pms_mess_per_page\', \'5\')') or error('Unable to insert config value \'o_pms_mess_per_page\'', __FILE__, __LINE__, $db->error());

// Since 0.0.3265: Add o_pms_notification/experimental feature
if (!array_key_exists('o_pms_notification', $luna_config))
$db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\'o_pms_notification\', \'1\')') or error('Unable to insert config value \'o_pms_notification\'', __FILE__, __LINE__, $db->error());

break;

// Preparse posts
Expand Down
4 changes: 2 additions & 2 deletions include/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Version {
const FORUM_VERSION = '0.0.2';

// The Luna Core version
const FORUM_CORE_VERSION = '0.0.3263';
const FORUM_CORE_VERSION = '0.0.3265';

// The database version number, every change in the database requires this number to go one up
const FORUM_DB_VERSION = 85.05;
const FORUM_DB_VERSION = 85.09;

// The parser version number, every change to the parser requires this number to go one up
const FORUM_PARSER_VERSION = 10;
Expand Down
4 changes: 4 additions & 0 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,10 @@ function process_form(the_form) {
'o_backstage_dark' => 0, // Experimental
'o_reading_list' => 0, // Experimental
'o_private_message' => 0, // Experimental
'o_pms_enabled' => 1, // Experimental
'o_pms_mess_per_page' => 10, // Experimental
'o_pms_max_receiver' => 5, // Experimental
'o_pms_notification' => 1, // Experimental
'p_message_img_tag' => 1,
'p_message_all_caps' => 1,
'p_subject_all_caps' => 1,
Expand Down

0 comments on commit c997751

Please sign in to comment.