1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Fix for 'first' layout activation. TinyMce issue with Mod-security commented.

This commit is contained in:
Cameron
2018-01-08 14:09:09 -08:00
parent 2f3f5de97b
commit dd83244c31
2 changed files with 3 additions and 1 deletions

View File

@@ -921,7 +921,7 @@ class news_front
$c = 1;
foreach($newsList as $row)
{
$tpl = ($c === 1 && !empty($template['first'])) ? $template['first'] : $template['item'];
$tpl = ($c === 1 && !empty($template['first']) && $this->from === 0) ? $template['first'] : $template['item'];
$text .= $this->ix->render_newsitem($row, 'return', '', $tpl, $param);
$c++;

View File

@@ -219,6 +219,8 @@
_e107_bbcode2html : function(s, url) {
s = tinymce.trim(s);
// FIXME mod-security might block the ajax call below with Rules: 942230, 949110, 980130 - reason yet unknown.
// return s;
var p = $.ajax({