From 33547c0b7e1f234729c4fe6862466c6c381aa587 Mon Sep 17 00:00:00 2001 From: briandilley Date: Thu, 4 Nov 2004 19:57:59 +0000 Subject: [PATCH] fixed minor bugs --- kwotes-lib.pl | 1 + kwotes.pl | 2 +- templates/xml/kwote-even | 2 +- templates/xml/kwote-odd | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kwotes-lib.pl b/kwotes-lib.pl index 79b87dd..9499fb8 100755 --- a/kwotes-lib.pl +++ b/kwotes-lib.pl @@ -8,6 +8,7 @@ $HEADER = "header"; $FOOTER = "footer"; $CONTENT_DEFAULT = "default-content"; $CONTENT_ADD = "add-kwote"; +$CONTENT_ADD_THANKS = "add-kwote-thanks"; $CONTENT_SEARCH = "search"; $BEFORE_LIST = "before-list"; $AFTER_LIST = "after-list"; diff --git a/kwotes.pl b/kwotes.pl index 6b142ff..6353392 100755 --- a/kwotes.pl +++ b/kwotes.pl @@ -71,7 +71,7 @@ if ($action eq "add") { # wtf? errors? in my code? noooo. if (!defined($kid)) { $vars{TITLE} = "An Error Occured"; - $vars{ERROR_MESSAGE} = "Couldn't add kwote"; + $vars{ERROR_MESSAGE} = "Couldn't add kwote: ".$DBI::errstr; $main_content = wrap_template($template, $CONTENT_ERROR, %vars); # all was good diff --git a/templates/xml/kwote-even b/templates/xml/kwote-even index 776242c..493afb8 100755 --- a/templates/xml/kwote-even +++ b/templates/xml/kwote-even @@ -1,2 +1,2 @@ - + diff --git a/templates/xml/kwote-odd b/templates/xml/kwote-odd index ac9d915..497a1a9 100755 --- a/templates/xml/kwote-odd +++ b/templates/xml/kwote-odd @@ -1 +1 @@ - +