Forráskód Böngészése

add extras to unifi homepage call

CauseFX 5 éve
szülő
commit
774efe5c1b
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      api/homepage/unifi.php

+ 2 - 1
api/homepage/unifi.php

@@ -266,7 +266,8 @@ trait UnifiHomepageItem
 		}
 		$api['content']['unifi'] = array();
 		$url = $this->qualifyURL($this->config['unifiURL']);
-		$options = array('verify' => false, 'verifyname' => false, 'follow_redirects' => true);
+		$extras = array('verify' => false, 'verifyname' => false, 'follow_redirects' => true);
+		$options = $this->requestOptions($url, true, $this->config['homepageUnifiRefresh'], $extras);
 		$data = array(
 			'username' => $this->config['unifiUsername'],
 			'password' => $this->decrypt($this->config['unifiPassword']),