Skip to content

Commit b3ce5d6

Browse files
committed
Add is_browser to status page
1 parent 209208c commit b3ce5d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/Status.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ protected static function getStatus( StatusModel &$model ) {
5757
$utc = new DateTimeZone( 'Etc/UTC' );
5858

5959
$status->healthcheck = $healthcheck;
60+
$status->is_browser = Common::isBrowser(getenv( 'HTTP_USER_AGENT' ));
6061
$status->remote_address = getenv( 'REMOTE_ADDR' );
6162
$status->remote_geoinfo = GeoIP::get( $status->remote_address );
6263
$status->remote_user_agent = getenv( 'HTTP_USER_AGENT' );
@@ -66,7 +67,7 @@ protected static function getStatus( StatusModel &$model ) {
6667
$model->status = $status;
6768

6869
foreach ( $healthcheck as $key => $val ) {
69-
if (is_bool($val) && !$val) {
70+
if ( is_bool( $val ) && !$val ) {
7071
// let the controller know that we're unhealthy.
7172
return false;
7273
}

0 commit comments

Comments
 (0)