From: short <> Date: Tue, 8 Oct 2002 23:18:41 +0000 (+0000) Subject: Fixed substitution for multiline articles X-Git-Url: https://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=commitdiff_plain;h=a21c7af69145f31345f86e1e9960cdeef1215e3a;hp=5184524480f39a76f89f6de59c4a5f21c778ae33 Fixed substitution for multiline articles --- diff --git a/obsah.php b/obsah.php index f1737c9..1203d72 100644 --- a/obsah.php +++ b/obsah.php @@ -47,11 +47,11 @@ . " and month=".$row["month"] ); while ($article_row=mysql_fetch_array($article_result)) - $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")$page_obsah_contents", + $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")([\n$page_obsah_contents])", "$sep_obsah_contents" ."" ."\\1" - ."$page_obsah_contents",$contents); + ."\\2",$contents); mysql_free_result($article_result); $contents=ereg_replace("http://[^[:space:]$page_obsah_contents$sep_obsah_contents]+",