mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 01:30:32 +02:00
MySQL error message fix. Custom Page userclass fix. Media-manager import fix for files contained '%'. XML DB export fix. Other News custom caption fix. FB Like menu without app_id fix.
This commit is contained in:
@@ -32,7 +32,14 @@ $ix = new news;
|
||||
|
||||
if(!empty($parm))
|
||||
{
|
||||
parse_str($parm, $parms);
|
||||
if(is_string($parm))
|
||||
{
|
||||
parse_str($parm, $parms);
|
||||
}
|
||||
else
|
||||
{
|
||||
$parms = $parm;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$OTHERNEWS2_STYLE)
|
||||
@@ -49,7 +56,16 @@ if(!$OTHERNEWS2_STYLE)
|
||||
|
||||
if(!empty($parms['caption']))
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'],true,'TITLE');
|
||||
if(isset($parms['caption'][e_LANGUAGE]))
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'][e_LANGUAGE], true,'TITLE');
|
||||
}
|
||||
else
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'], true,'TITLE');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else //v1.x
|
||||
|
Reference in New Issue
Block a user