1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Expanding the plugin-builder to generate addons. (work-in-progress)

This commit is contained in:
Cameron
2016-04-10 18:47:40 -07:00
parent 8ff02d9aa9
commit 5e862682be
4 changed files with 140 additions and 13 deletions

View File

@@ -42,9 +42,9 @@ class news_featurebox // include plugin-folder in the name.
$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(5,news_render_type) ORDER BY news_datestamp DESC LIMIT 10";
if($sql->db_Select_gen($query))
if($sql->gen($query))
{
while($row = $sql->db_Fetch())
while($row = $sql->fetch())
{
$fbox[] = array(
'title' => $row['news_title'],