From b6f7a1edb8abc0f7676a6ce73f2f79da9dff2e4d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Apr 2006 08:25:00 +0000 Subject: [PATCH] r788: - No longer highlight the or <input> of bug reports. Closes bug://problem/21 - Created template changes file --- docs/template_changes.txt | 20 ++++++++++++++++++++ showreport.php | 3 ++- templates/showreport.tpl | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 docs/template_changes.txt diff --git a/docs/template_changes.txt b/docs/template_changes.txt new file mode 100644 index 0000000..3856066 --- /dev/null +++ b/docs/template_changes.txt @@ -0,0 +1,20 @@ +TEMPLATE CHANGES +========================== + +################################################################### +showreport.tpl (fixes highlighting of <title> tag http://bugs.iris-studios.com/showreport.php?bugid=21): +------------------------------------------------------------------- +Index: templates/showreport.tpl +=================================================================== +--- templates/showreport.tpl (revision 769) ++++ templates/showreport.tpl (working copy) +@@ -5,7 +5,7 @@ + <link rel="stylesheet" href="templates/report.css" media="screen" /> + <link rel="stylesheet" href="templates/fields.css" media="screen" /> + <link rel="stylesheet" href="templates/box.css" media="screen" /> +- <title><lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary] ++ <lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary_title] + + + +################################################################### \ No newline at end of file diff --git a/showreport.php b/showreport.php index bd03424..7884c9d 100644 --- a/showreport.php +++ b/showreport.php @@ -326,7 +326,8 @@ while ($comment = $db->fetch_array($comments_fetch)) $show['newreply'] = ((can_perform('canpostcomments', $bug['productid'])) ? true : false); -if (is_array($hilight)) +$bug['summary_title'] = $bug['summary']; +if (is_array($hilight) AND !$show['edit']) { foreach ($hilight AS $id => $find) { diff --git a/templates/showreport.tpl b/templates/showreport.tpl index 2191b06..c5c6ad7 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -5,7 +5,7 @@ $headinclude - <lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary] + <lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary_title] -- 2.22.5