Przeglądaj źródła

added homepage sort to js variable

CauseFX 5 lat temu
rodzic
commit
4c351027fd
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      api/functions/organizr-functions.php

+ 4 - 0
api/functions/organizr-functions.php

@@ -15,6 +15,7 @@ function checkPlexAdminFilled()
 function organizrSpecialSettings()
 {
 	$refreshSearch = "Refresh";
+	$homepageOrderSearch = "homepageOrder";
 	$tautulliSearch = "tautulli_token";
 	$tautulli = array_filter($_COOKIE, function ($k) use ($tautulliSearch) {
 		return stripos($k, $tautulliSearch) !== false;
@@ -24,6 +25,9 @@ function organizrSpecialSettings()
 			'refresh' => array_filter($GLOBALS, function ($k) use ($refreshSearch) {
 				return stripos($k, $refreshSearch) !== false;
 			}, ARRAY_FILTER_USE_KEY),
+			'order' => array_filter($GLOBALS, function ($k) use ($homepageOrderSearch) {
+				return strpos($k, $homepageOrderSearch) !== false;
+			}, ARRAY_FILTER_USE_KEY),
 			'search' => array(
 				'enabled' => (qualifyRequest($GLOBALS['mediaSearchAuth']) && $GLOBALS['mediaSearch'] == true && $GLOBALS['plexToken']) ? true : false,
 				'type' => $GLOBALS['mediaSearchType'],