1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-15 18:14:07 +02:00

Fixes #3860 - remove from magic shortcode 'caption'

This commit is contained in:
Cameron 2019-06-19 12:55:44 -07:00
parent 750fb4a4e0
commit 4c2762d7b9

View File

@ -1196,13 +1196,13 @@ if (!class_exists('e107table', false))
$options = $this->getContent();
$options['uniqueId'] = $this->uniqueId;
$options['menuArea'] = $this->eMenuArea;
$options['menuCount'] = $this->eMenuCount;
$options['menuTotal'] = varset($this->eMenuTotal[$this->eMenuArea]);
$options['setStyle'] = $this->eSetStyle;
$options['uniqueId'] = (string) $this->uniqueId;
$options['menuArea'] = (int) $this->eMenuArea;
$options['menuCount'] = (int) $this->eMenuCount;
$options['menuTotal'] = (int) varset($this->eMenuTotal[$this->eMenuArea]);
$options['setStyle'] = (string) $this->eSetStyle;
$options['caption'] = $caption; // TODO FIXME strip HTML but retain text that may be inside tags.
$options['caption'] = e107::getParser()->toText($caption);
if($this->eSetStyle === 'default' || $this->eSetStyle === 'main')
{