mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Fixes #4706 'quote' bbcode in TinyMce and fixes fatal error under PHP 8.1 (LAN_WROTE)
This commit is contained in:
@@ -1,13 +1,10 @@
|
|||||||
//<?
|
//<?
|
||||||
$class = e107::getBB()->getClass('quote');
|
$class = e107::getBB()->getClass('quote');
|
||||||
e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE."/lan_parser_functions.php");
|
e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE."/".e_LANGUAGE.".php");
|
||||||
|
|
||||||
if(deftrue('BOOTSTRAP'))
|
if(deftrue('BOOTSTRAP'))
|
||||||
{
|
{
|
||||||
return '<blockquote>
|
return '<blockquote><p>'.$code_text.'</p><small><cite title="'.$parm.'">'.$parm.'</cite></small></blockquote>';
|
||||||
<p>'.$code_text.'</p>
|
|
||||||
<small><cite title="'.$parm.'">'.$parm.'</cite></small>
|
|
||||||
</blockquote>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<div class='indent {$class}'><em>$parm ".LAN_WROTE."</em> ...<br />$code_text</div>";
|
return "<div class='indent {$class}'><em>$parm ".LAN_WROTE."</em> ...<br />$code_text</div>";
|
||||||
|
@@ -117,6 +117,11 @@ TEMPL;
|
|||||||
$fa = e107::getTheme()->getFontAwesome(); // get the frontend theme's fontawesome version.
|
$fa = e107::getTheme()->getFontAwesome(); // get the frontend theme's fontawesome version.
|
||||||
$tp->setFontAwesome($fa);
|
$tp->setFontAwesome($fa);
|
||||||
|
|
||||||
|
if(!defined('BOOTSTRAP') && ($bs = e107::getTheme()->getLibVersion('bootstrap')))
|
||||||
|
{
|
||||||
|
define('BOOTSTRAP', (int) $bs);
|
||||||
|
}
|
||||||
|
|
||||||
$content = stripslashes($content);
|
$content = stripslashes($content);
|
||||||
|
|
||||||
// $content = e107::getBB()->htmltoBBcode($content); //XXX This breaks inserted images from media-manager. :/
|
// $content = e107::getBB()->htmltoBBcode($content); //XXX This breaks inserted images from media-manager. :/
|
||||||
|
@@ -215,6 +215,8 @@
|
|||||||
),
|
),
|
||||||
'quote' =>
|
'quote' =>
|
||||||
array (
|
array (
|
||||||
|
'Ted' => array('input'=>'Quoted Message', 'expected'=>'<blockquote><p>Quoted Message</p><small><cite title="Ted">Ted</cite></small></blockquote>'),
|
||||||
|
|
||||||
),
|
),
|
||||||
'right' =>
|
'right' =>
|
||||||
array (
|
array (
|
||||||
|
Reference in New Issue
Block a user