1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

PHP Warning removals.

This commit is contained in:
Cameron 2016-12-17 10:15:10 -08:00
parent 3af165f351
commit f113a0d265
10 changed files with 10 additions and 10 deletions

View File

@ -117,7 +117,7 @@ class news_shortcodes extends e_shortcode
}
else
{
return "<a href='".e107::getUrl()->create('user/profile/view', $this->news_item)."'>".$this->news_item['user_name']."{$parm}</a>";
return "<a href='".e107::getUrl()->create('user/profile/view', $this->news_item)."'>".$this->news_item['user_name']."</a>";
}
}
return "<a href='http://e107.org'>e107</a>";

View File

@ -13,7 +13,7 @@ if (!defined('e107_INIT')) { exit; }
class list_chatbox_menu
{
function list_chatbox_menu($parent)
function __construct($parent)
{
$this->parent = $parent;
}

View File

@ -18,7 +18,7 @@ if (!defined('e107_INIT')) { exit; }
class list_download
{
function list_download($parent)
function __construct($parent)
{
$this->parent = $parent;
}

View File

@ -14,7 +14,7 @@ if (!defined('e107_INIT')) { exit; }
//TODO: Investigate queries - needs some more sorting
class list_forum
{
function list_forum($parent)
function __construct($parent)
{
$this->parent = $parent;
}

View File

@ -118,7 +118,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
$text .= "<li>";
if ($this->menuPref['title'])
if (!empty($this->menuPref['title']))
{
$text .= "<a href='{$url}'>{$topic}</a><br />{$post}<br /><small class='text-muted muted'>".LAN_FORUM_MENU_001." {$poster} {$datestamp}</small>";
}

View File

@ -41,7 +41,7 @@ class listclass
* @return void
*
*/
function listclass($mode='')
function __construct($mode='')
{
global $TEMPLATE_LIST_NEW, $list_shortcodes;

View File

@ -30,7 +30,7 @@ class list_shortcodes
var $list_pref;
public $plugin;
function list_shortcodes()
function __construct()
{
$this->e107 = e107::getInstance();
$this->rc = '';

View File

@ -33,7 +33,7 @@ if(!is_object($cobj))
class list_comment
{
function list_comment($parent)
function __construct($parent)
{
$this->parent = $parent;
}

View File

@ -20,7 +20,7 @@ if (!defined('e107_INIT')) { exit; }
class list_members
{
function list_members($parent)
function __construct($parent)
{
$this->parent = $parent;
}

View File

@ -26,7 +26,7 @@ if (!defined('e107_INIT')) { exit; }
class list_news
{
function list_news($parent)
function __construct($parent)
{
$this->parent = $parent;
}