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 @@ - +