mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Notice removal
This commit is contained in:
@@ -203,7 +203,7 @@ class news_shortcodes extends e_shortcode
|
||||
function sc_pdficon()
|
||||
{
|
||||
$pref = e107::getPref();
|
||||
if (!$pref['plug_installed']['pdf']) { return ''; }
|
||||
if (!varset($pref['plug_installed']['pdf'])) { return ''; }
|
||||
return e107::getParser()->parseTemplate('{PDF='.LAN_NEWS_24.'^news.'.$this->news_item['news_id'].'}');
|
||||
}
|
||||
|
||||
@@ -326,9 +326,10 @@ class news_shortcodes extends e_shortcode
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
if($this->news_item['news_thumbnail'][0] == '{' ) // Always resize. Use {SETIMAGE: w=x&y=x&crop=0} PRIOR to calling shortcode to change.
|
||||
{
|
||||
$src = $tp->thumbUrl($this->news_item['news_thumbnail'],"w={$w}&h={$h}");
|
||||
$src = $tp->thumbUrl($this->news_item['news_thumbnail']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -111,7 +111,7 @@ class chatbox_shortcodes extends e_shortcode
|
||||
|
||||
function sc_cb_avatar($parm='')
|
||||
{
|
||||
return e107::getParser()->parseTemplate("{USER_AVATAR=".$this->var['user_image']."}");
|
||||
return e107::getParser()->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'])."}");
|
||||
}
|
||||
|
||||
function sc_cb_bullet($parm = '')
|
||||
|
Reference in New Issue
Block a user