mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make update_status and update_output_window consistent on checking for console version or not.
This commit is contained in:
parent
23fc1ae82d
commit
2add8ea772
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user