1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 21:32:09 +02:00

Code cleanup and optimization

This commit is contained in:
Cameron
2020-12-14 16:21:48 -08:00
parent c258b856f2
commit 44e260b121
81 changed files with 747 additions and 722 deletions

View File

@@ -55,14 +55,14 @@ class list_news
WHERE ".$qry." AND n.news_class REGEXP '".e_CLASS_REGEXP."'
ORDER BY n.news_datestamp DESC LIMIT 0,".intval($this->parent->settings['amount']);
if(!$this->parent->e107->sql->db_Select_gen($qry))
if(!$this->parent->e107->sql->gen($qry))
{
$list_data = LIST_NEWS_2;
}
else
{
$list_data = array();
while($row=$this->parent->e107->sql->db_Fetch())
while($row=$this->parent->e107->sql->fetch())
{
$row['news_title'] = $this->parse_news_title($row['news_title']);
$rowheading = $this->parent->parse_heading($row['news_title']);