z.B. 10 Zitate,
bei ca 50 wird das template gesprengt und man schreibt im Hintergrund weiter.
Und das nervt.
Code: Alles auswählen
if ($open_is_regexp)
{
$start_tag = preg_replace($open_tag[$start_tag_index], $open_regexp_replace[$start_tag_index], $start_tag);
}
Code: Alles auswählen
if ($open_is_regexp && $curr_nesting_depth < 10)
{
$start_tag = preg_replace($open_tag[$start_tag_index], $open_regexp_replace[$start_tag_index], $start_tag);
}
elseif($open_is_regexp)
{
$start_tag = preg_replace($open_tag[$start_tag_index],"[ERROR]",$start_tag);
}
Code: Alles auswählen
if ($open_is_regexp)
{
$text = $before_start_tag . $start_tag;
}
else
{
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$uid]";
}
Code: Alles auswählen
if ($open_is_regexp)
{
$text = $before_start_tag . $start_tag;
}
elseif($curr_nesting_depth < 10)
{
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$uid]";
}
else
{
$text = $before_start_tag . "[ERROR]";
}
Code: Alles auswählen
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$uid]";
Code: Alles auswählen
if($curr_nesting_depth < 10)
{
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$uid]";
}
else
{
$text .= $between_tags . "[/ERROR]";
}
sollte nicht rein, das könnte zu Endlosschleifen führen (im Prinzip könntest du nach den Ersetzungen [ERROR] und [/ERROR] wieder durch die Originale ersetzen, das habe ich aber jetzt mal nicht ausgeführt).bzw.