diff options
| author | Rahul R <rahulr92@gmail.com> | 2012-04-06 01:07:23 +0530 |
|---|---|---|
| committer | Rahul R <rahulr92@gmail.com> | 2012-04-08 10:34:44 +0530 |
| commit | c524236ef6d84f6ef78f684aeb7bb469ca844db4 (patch) | |
| tree | 8535fbc94dbd87e8492be685da808cd1ee46da81 /phpBB/install/database_update.php | |
| parent | 2a8481d68188480061e9769711195091f05f7134 (diff) | |
| download | forums-c524236ef6d84f6ef78f684aeb7bb469ca844db4.tar forums-c524236ef6d84f6ef78f684aeb7bb469ca844db4.tar.gz forums-c524236ef6d84f6ef78f684aeb7bb469ca844db4.tar.bz2 forums-c524236ef6d84f6ef78f684aeb7bb469ca844db4.tar.xz forums-c524236ef6d84f6ef78f684aeb7bb469ca844db4.zip | |
[ticket/10650] Changed acp option from per forum to global
Changed the display last subject acp toggle option from
per forum to global. Modified associated database entries.
New option is available in ACP General->Board Features.
Also corrected <br /> in forumlist_body.html.
PHPBB3-10650
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 509e991c81..89b252e3fa 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1084,9 +1084,6 @@ function database_update_info() GROUPS_TABLE => array( 'group_teampage' => array('UINT', 0, 'after' => 'group_legend'), ), - FORUMS_TABLE => array( - 'display_last_subject' => array('BOOL', 1), - ), PROFILE_FIELDS_TABLE => array( 'field_show_on_pm' => array('BOOL', 0), ), @@ -2397,8 +2394,15 @@ function change_database_data(&$no_updates, $version) $sql = 'INSERT INTO ' . STYLES_TABLE . " (style_name, style_copyright, style_active, style_path, bbcode_bitfield, style_parent_id, style_parent_tree) VALUES ('prosilver', '© phpBB Group', 1, 'prosilver', 'kNg=', 0, '')"; _sql($sql, $errored, $error_ary); + //Create config value for displaying last subject on forum list + if(!isset($config['display_last_subject'])) + { + $config->set("display_last_subject", '1'); + } + $no_updates = false; break; } } + |
