mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Fixes #3860 - remove from magic shortcode 'caption'
This commit is contained in:
12
class2.php
12
class2.php
@@ -1196,13 +1196,13 @@ if (!class_exists('e107table', false))
|
|||||||
|
|
||||||
$options = $this->getContent();
|
$options = $this->getContent();
|
||||||
|
|
||||||
$options['uniqueId'] = $this->uniqueId;
|
$options['uniqueId'] = (string) $this->uniqueId;
|
||||||
$options['menuArea'] = $this->eMenuArea;
|
$options['menuArea'] = (int) $this->eMenuArea;
|
||||||
$options['menuCount'] = $this->eMenuCount;
|
$options['menuCount'] = (int) $this->eMenuCount;
|
||||||
$options['menuTotal'] = varset($this->eMenuTotal[$this->eMenuArea]);
|
$options['menuTotal'] = (int) varset($this->eMenuTotal[$this->eMenuArea]);
|
||||||
$options['setStyle'] = $this->eSetStyle;
|
$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')
|
if($this->eSetStyle === 'default' || $this->eSetStyle === 'main')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user