fixed minor bugs
This commit is contained in:
parent
516c5fcb2b
commit
33547c0b7e
@ -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";
|
||||
|
@ -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
|
||||
|
@ -1,2 +1,2 @@
|
||||
|
||||
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>
|
||||
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_PLAIN}]]></kwote>
|
||||
|
@ -1 +1 @@
|
||||
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>
|
||||
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_PLAIN}]]></kwote>
|
||||
|
Loading…
Reference in New Issue
Block a user