mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 13:52:35 +02:00
Remove some references to deprecated functions/methods.
This commit is contained in:
@@ -76,7 +76,7 @@ class list_comment
|
||||
$record['heading'] = $this->parent->e107->tp->toHTML($rowheading, true);
|
||||
}
|
||||
$category = '';
|
||||
if(varsettrue($this->parent->settings['category']))
|
||||
if(vartrue($this->parent->settings['category']))
|
||||
{
|
||||
if($row['comment_category_url'])
|
||||
{
|
||||
@@ -87,8 +87,8 @@ class list_comment
|
||||
$record['category'] = $row['comment_category_heading'];
|
||||
}
|
||||
}
|
||||
$record['author'] = (varsettrue($this->parent->settings['author']) ? $row['comment_author'] : '');
|
||||
$record['date'] = (varsettrue($this->parent->settings['date']) ? $this->parent->getListDate($row['comment_datestamp']) : "");
|
||||
$record['author'] = (vartrue($this->parent->settings['author']) ? $row['comment_author'] : '');
|
||||
$record['date'] = (vartrue($this->parent->settings['date']) ? $this->parent->getListDate($row['comment_datestamp']) : "");
|
||||
$record['icon'] = $bullet;
|
||||
$record['info'] = '';
|
||||
|
||||
|
@@ -54,7 +54,7 @@ class list_members
|
||||
$record['heading'] = (USER ? "<a href='".e_BASE."user.php?id.".$row['user_id']."'>".$rowheading."</a>" : $rowheading);
|
||||
$record['category'] = '';
|
||||
$record['author'] = '';
|
||||
$record['date'] = (varsettrue($this->parent->settings['date']) ? $this->parent->getListDate($row['user_join']) : "");
|
||||
$record['date'] = (vartrue($this->parent->settings['date']) ? $this->parent->getListDate($row['user_join']) : "");
|
||||
$record['info'] = '';
|
||||
$list_data[] = $record;
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ class list_news
|
||||
$bullet = $this->parent->getBullet($this->parent->settings['icon']);
|
||||
|
||||
$list_caption = $this->parent->settings['caption'];
|
||||
$list_display = (varsettrue($this->parent->settings['open']) ? '' : 'none');
|
||||
$list_display = (vartrue($this->parent->settings['open']) ? '' : 'none');
|
||||
|
||||
$qry = "
|
||||
SELECT n.*, c.category_id AS news_category_id, c.category_name AS news_category_name, u.user_id AS news_author_id, u.user_name AS news_author_name
|
||||
@@ -72,7 +72,7 @@ class list_news
|
||||
$record['heading'] = "<a href='".e_BASE."news.php?item.".$row['news_id']."'>".$rowheading."</a>";
|
||||
|
||||
$record['author'] = '';
|
||||
if(varsettrue($this->parent->settings['author']))
|
||||
if(vartrue($this->parent->settings['author']))
|
||||
{
|
||||
if($row['news_author'] == 0)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ class list_news
|
||||
}
|
||||
else
|
||||
{
|
||||
if(varsettrue($row['news_author_name']))
|
||||
if(vartrue($row['news_author_name']))
|
||||
{
|
||||
$record['author'] = "<a href='".e_BASE."user.php?id.".$row['news_author_id']."'>".$row['news_author_name']."</a>";
|
||||
}
|
||||
@@ -88,13 +88,13 @@ class list_news
|
||||
}
|
||||
|
||||
$record['category'] = '';
|
||||
if(varsettrue($this->parent->settings['category']))
|
||||
if(vartrue($this->parent->settings['category']))
|
||||
{
|
||||
$record['category'] = "<a href='".e_BASE."news.php?cat.".$row['news_category_id']."'>".$row['news_category_name']."</a>";
|
||||
}
|
||||
|
||||
$record['date'] = '';
|
||||
if(varsettrue($this->parent->settings['date']))
|
||||
if(vartrue($this->parent->settings['date']))
|
||||
{
|
||||
$record['date'] = $this->parent->getListDate($row['news_datestamp']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user