Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6303e1d5
Commit
6303e1d5
authored
Aug 17, 2009
by
Richard Mansfield
Browse files
Send forum post immediately after submission when post delay is zero
parent
2d86fd5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/interaction/forum/editpost.php
View file @
6303e1d5
...
...
@@ -216,6 +216,10 @@ function addpost_submit(Pieform $form, $values) {
),
'id'
,
true
);
$delay
=
get_config_plugin
(
'interaction'
,
'forum'
,
'postdelay'
);
if
(
!
is_null
(
$delay
)
&&
$delay
==
0
)
{
PluginInteractionForum
::
interaction_forum_new_post
(
array
(
$postid
));
}
$SESSION
->
add_ok_msg
(
get_string
(
'addpostsuccess'
,
'interaction.forum'
));
redirect
(
'/interaction/forum/topic.php?id='
.
$values
[
'topic'
]
.
'#post'
.
$postid
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment