Skip to content

Commit

Permalink
Messages.subs is always needed in Display.controller
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Jun 21, 2014
1 parent 65d235f commit 7c83860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/controllers/Display.controller.php
Expand Up @@ -62,6 +62,7 @@ public function action_display()

// And the topic functions
require_once(SUBSDIR . '/Topic.subs.php');
require_once(SUBSDIR . '/Messages.subs.php');

// Not only does a prefetch make things slower for the server, but it makes it impossible to know if they read it.
if (isset($_SERVER['HTTP_X_MOZ']) && $_SERVER['HTTP_X_MOZ'] == 'prefetch')
Expand Down Expand Up @@ -175,7 +176,6 @@ public function action_display()
// When was the last time this topic was replied to? Should we warn them about it?
if (!empty($modSettings['oldTopicDays']))
{
require_once(SUBSDIR . '/Messages.subs.php');
$mgsOptions = basicMessageInfo($topicinfo['id_last_msg'], true);
$context['oldTopicError'] = $mgsOptions['poster_time'] + $modSettings['oldTopicDays'] * 86400 < time() && empty($topicinfo['is_sticky']);
}
Expand Down

0 comments on commit 7c83860

Please sign in to comment.