fixed minor bugs

This commit is contained in:
briandilley 2004-11-04 19:57:59 +00:00
parent 516c5fcb2b
commit 33547c0b7e
4 changed files with 4 additions and 3 deletions

View File

@ -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";

View File

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

View File

@ -1,2 +1,2 @@
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_PLAIN}]]></kwote>

View File

@ -1 +1 @@
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_PLAIN}]]></kwote>