Make update_status and update_output_window consistent on checking for console version or not.

This commit is contained in:
Ermal 2011-08-19 19:02:53 +00:00
parent 23fc1ae82d
commit 2add8ea772

View File

@ -1557,10 +1557,11 @@ function update_output_window($text) {
*/
function update_status($status) {
global $pkg_interface;
if($pkg_interface == "console") {
echo $status . "\n";
} else {
if($pkg_interface != "console") {
echo "\n<script type=\"text/javascript\">this.document.forms[0].status.value=\"" . $status . "\";</script>";
} else {
echo $status . "\n";
}
/* ensure that contents are written out */
ob_flush();