mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
Test all e_shortcode.php files in core. PHP8 Fix for featurebox.
This commit is contained in:
@@ -288,7 +288,7 @@ class featurebox_shortcodes// must match the plugin's folder name. ie. [PLUGIN_F
|
||||
* @param string $parm parameters
|
||||
* @param string $mod category template
|
||||
*/
|
||||
function sc_featurebox_items($parm, $mod = '')
|
||||
function sc_featurebox_items($parm=null, $mod = '')
|
||||
{
|
||||
// TODO cache
|
||||
if(!e107::isInstalled('featurebox')) //just in case
|
||||
@@ -304,8 +304,11 @@ class featurebox_shortcodes// must match the plugin's folder name. ie. [PLUGIN_F
|
||||
{
|
||||
$ctemplate = $mod;
|
||||
}
|
||||
|
||||
parse_str($parm, $parm);
|
||||
|
||||
if(!empty($parm))
|
||||
{
|
||||
parse_str($parm, $parm);
|
||||
}
|
||||
|
||||
$category = clone $this->getCategoryModel($ctemplate);
|
||||
if(!$category->hasData())
|
||||
|
Reference in New Issue
Block a user