mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Fixes #3809 - broken links
This commit is contained in:
@@ -164,7 +164,7 @@ class forum_shortcodes extends e_shortcode
|
||||
return $text;
|
||||
}
|
||||
|
||||
function sc_search($parm='')
|
||||
function sc_search($parm=null)
|
||||
{
|
||||
|
||||
if(!deftrue('FONTAWESOME') || !$srchIcon = e107::getParser()->toGlyph('fa-search'))
|
||||
@@ -215,7 +215,7 @@ class forum_shortcodes extends e_shortcode
|
||||
{
|
||||
$total_new_threads = e107::getDb()->count('forum_thread', '(*)', "WHERE thread_datestamp>'".USERLV."' ");
|
||||
$total_read_threads = 0;
|
||||
if (USERVIEWED != "")
|
||||
if (defset('USERVIEWED') != "")
|
||||
{
|
||||
$tmp = explode(".", USERVIEWED); // List of numbers, separated by single period
|
||||
$total_read_threads = count($tmp);
|
||||
@@ -387,7 +387,7 @@ class forum_shortcodes extends e_shortcode
|
||||
|
||||
}
|
||||
|
||||
function sc_forumname($parm = '')
|
||||
function sc_forumname($parm = null)
|
||||
{
|
||||
if(substr($this->var['forum_name'], 0, 1) == '*')
|
||||
{
|
||||
@@ -429,7 +429,7 @@ class forum_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
function sc_threadsx($parm = '') // EQUAL TO SC_THREADS.......................
|
||||
function sc_threadsx($parm = null) // EQUAL TO SC_THREADS.......................
|
||||
{
|
||||
$val = ($this->var['forum_threads']) ? $this->var['forum_threads'] : '0';
|
||||
|
||||
@@ -442,7 +442,7 @@ class forum_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
function sc_repliesx($parm = '') // EQUAL TO SC_REPLIES.......................
|
||||
function sc_repliesx($parm = null) // EQUAL TO SC_REPLIES.......................
|
||||
{
|
||||
//print_a($parm);
|
||||
$val = ($this->var['forum_replies']) ? $this->var['forum_replies'] : '0';
|
||||
|
Reference in New Issue
Block a user