diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm
index 8cb0ab2ba..e5e690a6b 100644
--- a/lib/WebGUI.pm
+++ b/lib/WebGUI.pm
@@ -45,7 +45,7 @@ sub _generateDebug {
$debug .= '
| '.$section.'.'.$key.': | '.$value.' | ';
}
}
- $debug .= '
| |   |
';
+ $debug .= '| |
';
}
$debug .='';
}
@@ -211,7 +211,7 @@ sub _processOperations {
#-------------------------------------------------------------------
sub page {
- my ($positions, $wobjectOutput, $pageEdit, $httpHeader, $content, $operationOutput, $template);
+ my ($debug, $positions, $wobjectOutput, $pageEdit, $httpHeader, $content, $operationOutput, $template);
WebGUI::Session::open($_[0],$_[1]);
$operationOutput = _processOperations();
$wobjectOutput = _processFunctions();
@@ -249,8 +249,9 @@ sub page {
),
$positions
);
+ $debug = _generateDebug();
WebGUI::Session::close();
- return $httpHeader.$content._generateDebug();
+ return $httpHeader.$content.$debug;
}
diff --git a/lib/WebGUI/Wobject/FAQ.pm b/lib/WebGUI/Wobject/FAQ.pm
index 8c8863663..94c54b1b0 100644
--- a/lib/WebGUI/Wobject/FAQ.pm
+++ b/lib/WebGUI/Wobject/FAQ.pm
@@ -145,7 +145,6 @@ sub www_editQuestion {
#-------------------------------------------------------------------
sub www_editQuestionSave {
- my ($seq);
if (WebGUI::Privilege::canEditPage()) {
$_[0]->setCollateral("FAQ_question", "FAQ_questionId", {
FAQ_questionId => $session{form}{qid},