When Displaying all repositories (from eg: New Apps), do not show a repo if all the apps are deprecated / incompatible / blacklisted unless CA settings allows it.
pull/11/head
Squidly271 2021-08-06 19:24:55 -04:00
parent c51b15fcc8
commit 9102276d1d
3 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ ad4710ab4aa46dac8818218449292b15 ./CommunityApps.page
6e48a62b91bdd066f023f46c6b491afd ./images/discord-gray.svg
8e7dc33512b8a78f28d7179a972c7c34 ./images/discord-hover.svg
54e46db492ddb033dfeb2827c5efd4a8 ./images/discord-white.svg
ce58643666305cd071a0a159da8466d6 ./include/exec.php
84c751ea794ed1ec0bcaef2e042f1384 ./include/exec.php
06b55b88a6ed1834a15c7fd72b2c819d ./include/helpers.php
3893704ad833c765384c5fcf3147a7f7 ./include/paths.php
eb76c1b6ed3da5e5b393f22d2ec18430 ./javascript/libraries.js

View File

@ -537,6 +537,9 @@ function displayRepositories() {
$allRepos = array();
$bio = array();
foreach ($templates as $template) {
if ( $template['Blacklist'] ) continue;
if ( $template['Deprecated'] && $caSettings['hideDeprecated'] == "true" ) continue;
if ( ! $template['Compatible'] && $caSettings['hideIncompatible'] == "true" ) continue;
$repoName = $template['RepoName'];
if ( ! $repoName ) continue;
if ( $repoName == $caSettings['favourite'] ) {