mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Honor $pkg_interface
This commit is contained in:
parent
58095404f4
commit
ffe8bac2a4
@ -869,7 +869,12 @@ function get_dir($dir) {
|
||||
* update_output_window: update top textarea dynamically.
|
||||
*/
|
||||
function update_status($status) {
|
||||
echo "\n<script language=\"JavaScript\">document.forms[0].status.value=\"" . $status . "\";</script>";
|
||||
global $pkg_interface;
|
||||
if($pkg_interface == "console") {
|
||||
echo $status . "\n";
|
||||
} else {
|
||||
echo "\n<script type=\"text/javascript\">document.forms[0].status.value=\"" . $status . "\";</script>";
|
||||
}
|
||||
/* ensure that contents are written out */
|
||||
ob_flush();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user