git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+EaP 4/2010 (164)
[www.energie.vellum.cz.git]
/
obsah.php
diff --git
a/obsah.php
b/obsah.php
index
1203d72
..
4aa257e
100644
(file)
--- a/
obsah.php
+++ b/
obsah.php
@@
-47,7
+47,9
@@
. " and month=".$row["month"]
);
while ($article_row=mysql_fetch_array($article_result))
. " 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"
."<a href=\"clanek.php?year=".$row["year"]."&month=".$row["month"]."&id=".$article_row["id"]."\">"
."\\1</a>"
"$sep_obsah_contents"
."<a href=\"clanek.php?year=".$row["year"]."&month=".$row["month"]."&id=".$article_row["id"]."\">"
."\\1</a>"