When reinstalling a package, honor $pkg_interface

This commit is contained in:
Scott Ullrich 2007-02-22 20:01:44 +00:00
parent 5c76bd722b
commit 58095404f4

View File

@ -841,8 +841,13 @@ function get_filename_from_url($url) {
* update_output_window: update bottom textarea dynamically.
*/
function update_output_window($text) {
global $pkg_interface;
$log = ereg_replace("\n", "\\n", $text);
echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"" . $log . "\";</script>";
if($pkg_interface == "console") {
echo " $log";
} else {
echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"" . $log . "\";</script>";
}
/* ensure that contents are written out */
ob_flush();
}