mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
PHP Notice removal
This commit is contained in:
parent
7b4bc374c6
commit
3bbda20886
@ -386,7 +386,10 @@ class eDispatcher
|
||||
{
|
||||
case 'plugin':
|
||||
//if($custom) $custom = 'url/'.$custom;
|
||||
define('e_CURRENT_PLUGIN', $module); // TODO Move to a better location.
|
||||
if(!defined('e_CURRENT_PLUGIN'))
|
||||
{
|
||||
define('e_CURRENT_PLUGIN', $module); // TODO Move to a better location.
|
||||
}
|
||||
return $sc ? '{e_PLUGIN}'.$module.'url/'.$custom.'url.php' : e_PLUGIN.$module.'url/'.$custom.'url.php';
|
||||
break;
|
||||
|
||||
|
@ -71,7 +71,10 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
{
|
||||
// return print_a($this->postInfo['post_entry'],true);
|
||||
$emote = (isset($this->postInfo['post_options']['no_emote']) ? ',emotes_off' : '');
|
||||
return e107::getParser()->toHTML($this->postInfo['post_entry'], true, 'USER_BODY'.$emote, 'class:'.$this->postInfo['user_class']);
|
||||
|
||||
$uclass = (!empty($this->postInfo['user_class'])) ? $this->postInfo['user_class'] : 0;
|
||||
|
||||
return e107::getParser()->toHTML($this->postInfo['post_entry'], true, 'USER_BODY'.$emote, 'class:'.$uclass);
|
||||
}
|
||||
|
||||
function sc_postdeleted()
|
||||
@ -287,7 +290,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
|
||||
function sc_website()
|
||||
{
|
||||
if ($this->postInfo['user_homepage']) {
|
||||
if (!empty($this->postInfo['user_homepage'])) {
|
||||
return LAN_FORUM_2034.': '.$this->postInfo['user_homepage'].'<br />';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user