1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 08:39:57 +02:00

news_render_type fixes. Path fix for othernews menus.

This commit is contained in:
CaMer0n
2012-11-01 02:21:58 +00:00
parent f0d232a639
commit 7030f69f46
9 changed files with 77 additions and 50 deletions

View File

@@ -40,7 +40,7 @@ class news_featurebox // include plugin-folder in the name.
$fbox = array();
$nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'";
$query = "SELECT * FROM #news WHERE news_class REGEXP '".e_CLASS_REGEXP."' AND NOT (news_class REGEXP ".$nobody_regexp.") AND FIND_IN_SET(4,news_render_type) ORDER BY news_datestamp DESC LIMIT 10";
$query = "SELECT * FROM #news WHERE news_class REGEXP '".e_CLASS_REGEXP."' AND NOT (news_class REGEXP ".$nobody_regexp.") AND FIND_IN_SET(5,news_render_type) ORDER BY news_datestamp DESC LIMIT 10";
if($sql->db_Select_gen($query))
{