1
0
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:
Cameron 2015-04-22 12:27:02 -07:00
parent 7b4bc374c6
commit 3bbda20886
2 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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 />';
}
}