1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

PHP 7.1 Fixes.

This commit is contained in:
Cameron
2016-12-16 10:53:59 -08:00
parent 982fa869e3
commit e05425fbb2
4 changed files with 15 additions and 7 deletions

View File

@@ -512,10 +512,10 @@ class news_shortcodes extends e_shortcode
}
}
function sc_extended($parm='')
function sc_extended($parm=null)
{
$class = vartrue($parm['class']) ? "class='".$parm['class']."'" : '';
$class = !empty($parm['class']) ? "class='".$parm['class']."'" : '';
if ($this->news_item['news_extended'] && ($this->param['current_action'] != 'extend' || $parm == 'force'))
{
@@ -931,6 +931,10 @@ class news_shortcodes extends e_shortcode
/* @deprecated - use {NEWS_CATEGORY_ICON} instead */
function sc_newscaticon($parm = array())
{
if(is_string($parm))
{
$parm = array('type'=>$parm);
}
// BC
$category_icon = str_replace('../', '', trim($this->news_item['category_icon']));
if (!$category_icon) { return ''; }
@@ -955,7 +959,7 @@ class news_shortcodes extends e_shortcode
$icon = e107::getParser()->toIcon($category_icon, $parm);
switch($parm)
switch($parm['type'])
{
/* @deprecated - Will cause issues with glyphs */
case 'src':