mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Fix News was failing when trackback was enabled. Default news-list pref added.
This commit is contained in:
parent
b9bd719900
commit
47ee815bb5
@ -146,6 +146,7 @@
|
||||
<core name="news_cats"></core>
|
||||
<core name="news_newdateheader">0</core>
|
||||
<core name="newsposts">10</core>
|
||||
<core name="news_list_limit">10</core>
|
||||
<core name="newsposts_archive">0</core>
|
||||
<core name="newsposts_archive_title"></core>
|
||||
<core name="news_default_template">default</core>
|
||||
|
2
news.php
2
news.php
@ -586,7 +586,7 @@ switch ($action)
|
||||
// Get number of news item to show
|
||||
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled']) {
|
||||
$query = "
|
||||
SELECT SQL_CALC_FOUND_ROWS COUNT(tb.trackback_pid) AS tb_count, n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_id
|
||||
SELECT SQL_CALC_FOUND_ROWS COUNT(tb.trackback_pid) AS tb_count, n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_id,
|
||||
nc.category_name, nc.category_sef, nc.category_icon, nc.category_meta_keywords, nc.category_meta_description,
|
||||
COUNT(*) AS tbcount
|
||||
FROM #news AS n
|
||||
|
Loading…
x
Reference in New Issue
Block a user