diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-16 11:28:58 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-16 11:28:58 +0000 |
commit | c9dcf849b9d196f27131c21b79ebf1793f3c1cda (patch) | |
tree | bca8bb4b6ad03be4fd4534f2e3d423ffd66371c5 /phpBB/posting.php | |
parent | 2bbd2fb1f97d4668e82c26badbe89c3d3fdc8169 (diff) | |
download | forums-c9dcf849b9d196f27131c21b79ebf1793f3c1cda.tar forums-c9dcf849b9d196f27131c21b79ebf1793f3c1cda.tar.gz forums-c9dcf849b9d196f27131c21b79ebf1793f3c1cda.tar.bz2 forums-c9dcf849b9d196f27131c21b79ebf1793f3c1cda.tar.xz forums-c9dcf849b9d196f27131c21b79ebf1793f3c1cda.zip |
- two new packages... diff and utf
- only 60 chars for topic title if new post (please see changelog for explanation)
- change utf8_wordwrap (had some bugs david and nils spotted - was not really functional, sorry for this. :D)
git-svn-id: file:///svn/phpbb/trunk@8034 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index af357a90b9..71e0dfc2c7 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -324,6 +324,11 @@ if ($mode == 'bump') trigger_error('BUMP_ERROR'); } +// Subject length limiting to 60 characters if first post... +if ($mode == 'post' || ($mode == 'edit' && $post_data['topic_first_post_id'] == $post_data['post_id'])) +{ + $template->assign_var('S_NEW_MESSAGE', true); +} // Determine some vars if (isset($post_data['poster_id']) && $post_data['poster_id'] == ANONYMOUS) @@ -334,6 +339,7 @@ else { $post_data['quote_username'] = isset($post_data['username']) ? $post_data['username'] : ''; } + $post_data['post_edit_locked'] = (isset($post_data['post_edit_locked'])) ? (int) $post_data['post_edit_locked'] : 0; $post_data['post_subject'] = (in_array($mode, array('quote', 'edit'))) ? $post_data['post_subject'] : ((isset($post_data['topic_title'])) ? $post_data['topic_title'] : ''); $post_data['topic_time_limit'] = (isset($post_data['topic_time_limit'])) ? (($post_data['topic_time_limit']) ? (int) $post_data['topic_time_limit'] / 86400 : (int) $post_data['topic_time_limit']) : 0; |