|
@@ -142,6 +142,10 @@ function Post($post_errors = array())
|
|
|
|
|
|
$context['notify'] = !empty($context['notify']);
|
|
$context['notify'] = !empty($context['notify']);
|
|
$context['sticky'] = isset($_REQUEST['sticky']) ? !empty($_REQUEST['sticky']) : $sticky;
|
|
$context['sticky'] = isset($_REQUEST['sticky']) ? !empty($_REQUEST['sticky']) : $sticky;
|
|
|
|
+
|
|
|
|
+ // Check whether this is a really old post being bumped...
|
|
|
|
+ if (!empty($modSettings['oldTopicDays']) && $lastPostTime + $modSettings['oldTopicDays'] * 86400 < time() && empty($sticky) && !isset($_REQUEST['subject']))
|
|
|
|
+ $post_errors[] = array('old_topic', array($modSettings['oldTopicDays']));
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -353,10 +357,6 @@ function Post($post_errors = array())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // Check whether this is a really old post being bumped...
|
|
|
|
- if (!empty($modSettings['oldTopicDays']) && $lastPostTime + $modSettings['oldTopicDays'] * 86400 < time() && empty($sticky) && !empty($topic) && !isset($_REQUEST['subject']))
|
|
|
|
- $post_errors[] = array('old_topic', array($modSettings['oldTopicDays']));
|
|
|
|
-
|
|
|
|
// Get a response prefix (like 'Re:') in the default forum language.
|
|
// Get a response prefix (like 'Re:') in the default forum language.
|
|
if (!isset($context['response_prefix']) && !($context['response_prefix'] = cache_get_data('response_prefix')))
|
|
if (!isset($context['response_prefix']) && !($context['response_prefix'] = cache_get_data('response_prefix')))
|
|
{
|
|
{
|