mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #1007 - toDB() was breaking {e_XXX} paths when HTML was used.
This commit is contained in:
@@ -38,6 +38,17 @@ class e107TinyMceParser
|
||||
{
|
||||
$html = '';
|
||||
|
||||
if(!empty($_GET['debug']) && getperms('0'))
|
||||
{
|
||||
$debug = true; // For future use.
|
||||
// $_POST['content'] = '';
|
||||
// $_POST['mode'] = $_GET['mode'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$debug = false;
|
||||
}
|
||||
|
||||
if($_POST['mode'] == 'tohtml')
|
||||
{
|
||||
$html = $this->toHtml($_POST['content']);
|
||||
@@ -48,7 +59,11 @@ class e107TinyMceParser
|
||||
$html = $this->toBBcode($_POST['content']);
|
||||
}
|
||||
|
||||
if($this->gzipCompression == true)
|
||||
if($debug == true)
|
||||
{
|
||||
print_a($html);
|
||||
}
|
||||
elseif($this->gzipCompression == true)
|
||||
{
|
||||
header('Content-Encoding: gzip');
|
||||
$gzipoutput = gzencode($html,6);
|
||||
|
Reference in New Issue
Block a user