1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Code Cleanup

This commit is contained in:
Cameron
2019-05-20 14:53:43 -07:00
parent 6a2fdab074
commit bdb45485ee
27 changed files with 55 additions and 44 deletions

View File

@@ -107,7 +107,7 @@ class forum_search extends e_search // include plugin-folder in the name.
* Optional - Advanced Where
* @param $parm - data returned from $_GET (ie. advanced fields included. in this case 'date' and 'author' )
*/
function where($parm='')
function where($parm=null)
{
$tp = e107::getParser();

View File

@@ -278,7 +278,7 @@ class forum_post_handler
$poll = new poll;
require_once(HEADERF);
$template = $this->getTemplate('posted');
$template = (array) $this->getTemplate('posted');
echo $template['poll'];
require_once(FOOTERF);
exit;
@@ -389,7 +389,7 @@ class forum_post_handler
/**
* @return string
* @return array|string
*/
function getTemplate($type = 'post')
{

View File

@@ -296,7 +296,7 @@
/**
* @example {JOINED: dateformat=relative} - long|short|relative
*/
function sc_joined($parm = '')
function sc_joined($parm = null)
{
$gen = e107::getDate();
if($this->postInfo['post_user'])

View File

@@ -307,7 +307,7 @@
}
function sc_search($parm='')
function sc_search($parm=null)
{
if(!deftrue('FONTAWESOME') || !$srchIcon = e107::getParser()->toGlyph('fa-search'))
@@ -679,7 +679,7 @@
------*/
function sc_views($parm='')
function sc_views($parm=null)
{
$val = ($this->var['thread_views']) ? $this->var['thread_views'] : '0' ;
@@ -692,7 +692,7 @@
}
function sc_replies($parm='')
function sc_replies($parm=null)
{
$val = ($this->var['thread_total_replies']) ? $this->var['thread_total_replies'] : '0';