X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=obsah.php;h=4aa257e2ccabebff0a52d7c2e925375bed1a5158;hb=480eb092870e4716e1645926ad7494b6ca252a05;hp=1203d724050c09c0ca4acab5095800897534579b;hpb=a21c7af69145f31345f86e1e9960cdeef1215e3a;p=www.energie.vellum.cz.git diff --git a/obsah.php b/obsah.php index 1203d72..4aa257e 100644 --- a/obsah.php +++ b/obsah.php @@ -47,7 +47,9 @@ . " and month=".$row["month"] ); while ($article_row=mysql_fetch_array($article_result)) - $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")([\n$page_obsah_contents])", + $contents=ereg_replace("$sep_obsah_contents(" + .quotemeta(ereg_replace("\\|.*\$","",$article_row["name"])) + .")([\n$page_obsah_contents])", "$sep_obsah_contents" ."" ."\\1"