Skip to content

Commit

Permalink
#1022 #1024 #1025 Add new setting items
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Dec 20, 2014
1 parent 4ffed7f commit 01b1544
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion db_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,31 @@ function stripslashes_array($array) {
// Since 0.2.3425: Drop the color column from the notifications table
$db->drop_field($db->prefix.'notifications', 'color', 'VARCHAR(255)', false, 0) or error('Unable to drop color field', __FILE__, __LINE__, $db->error());

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

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

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

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

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

// Since 0.2.3495: Add o_copyright_type feature
if (!array_key_exists('o_custom_copyright', $luna_config))
$db->query('INSERT INTO '.$db->prefix.'config (conf_name, conf_value) VALUES (\'o_custom_copyright\', NULL)') or error('Unable to insert config value \'o_custom_copyright\'', __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.2-dev';

// The Luna Core version
const FORUM_CORE_VERSION = '0.2.3487';
const FORUM_CORE_VERSION = '0.2.3495';

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

// The parser version number, every change to the parser requires this number to go one up
const FORUM_PARSER_VERSION = '11.1.1';
Expand Down

0 comments on commit 01b1544

Please sign in to comment.