From f92fb2c5794f689c5a2328be9e7637062a4e234c Mon Sep 17 00:00:00 2001
From: short <>
Date: Thu, 16 Aug 2001 12:31:59 +0000
Subject: [PATCH] month_full()->month_a() to unify month elements naming
Cosmetic: Explicit db_connect() no longer needed
---
obsah.php | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/obsah.php b/obsah.php
index 3a8f994..aee9ede 100644
--- a/obsah.php
+++ b/obsah.php
@@ -13,8 +13,10 @@
$title_tail="Obsahy v¹ech èísel";
else if (!$month)
$title_tail="Obsahy èísel roku $year";
- else
- $title_tail="Obsah èísla $year/".month_full($year,$month);
+ else {
+ $month_a=month_a($year,$month);
+ $title_tail="Obsah èísla ".$month_a["name"];
+ }
$head_css="
.page { font-style: italic; }
@@ -22,7 +24,6 @@
heading();
print("
$title_tail
\n");
- db_connect();
$result=db_query("select year,month,month_last,contents from $tb_obsah"
.($year ? " where year='$year'" : "")
.($month ? " and month='$month'" : "")
@@ -31,8 +32,10 @@
if (!mysql_num_rows($result))
fatal("Obsah po¾adovan".($month ? "ého èísla" : "ých èísel")." bohu¾el není ulo¾en");
while ($row=mysql_fetch_array($result)) {
- if (!$month)
- print("Èíslo ".$row["year"]."/".month_full($row["year"],$row["month"],$row["month_last"])."
\n");
+ if (!$month) {
+ $month_a=month_a($row["year"],$row["month"],$row["month_last"]);
+ print("Èíslo ".$month_a["name"]."
\n");
+ }
$contents=htmlspecialchars($sep_obsah_contents.$row["contents"]);
$contents=ereg_replace("http://[^[:space:]$page_obsah_contents$sep_obsah_contents]+",
"\\0",$contents);
--
1.8.3.1