Skip to content
Permalink
Browse files

Update taghandlers.php

  • Loading branch information
bloatware committed Dec 1, 2019
1 parent a19bcbb commit 4bfc369bb127e04d9c93e1d318bfad388c8f12bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 textpattern/publish/taghandlers.php
@@ -1077,7 +1077,7 @@ function recent_comments($atts, $thing = null)
$expired = ($prefs['publish_expired_articles']) ? '' : " AND (".now('expires')." <= t.Expires OR t.Expires IS NULL) ";
$rs = startRows("SELECT d.name, d.email, d.web, d.message, d.discussid, UNIX_TIMESTAMP(d.Posted) AS time, t.ID AS thisid,
UNIX_TIMESTAMP(t.Posted) AS posted, t.Title AS title, t.Section AS section, t.Category1, t.Category2 t.url_title
UNIX_TIMESTAMP(t.Posted) AS posted, t.Title AS title, t.Section AS section, t.Category1, t.Category2, t.url_title
FROM ".safe_pfx('txp_discuss')." AS d INNER JOIN ".safe_pfx('textpattern')." AS t ON d.parentid = t.ID
WHERE t.Status >= ".STATUS_LIVE.$expired." AND d.visible = ".VISIBLE."
ORDER BY ".sanitizeForSort($sort)."

0 comments on commit 4bfc369

Please sign in to comment.
You can’t perform that action at this time.