1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Add option to hide categories with negative order in getAllCategories method

This commit is contained in:
Daniel Neto 2025-07-02 16:25:28 -03:00
parent 2bde902595
commit fe8348b1f4
2 changed files with 6 additions and 3 deletions

View file

@ -582,7 +582,7 @@ $tToleranceSide = 0.2;
}
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
$categories = Category::getAllCategories(false, true, $advancedCustom->CategoryShowOnlySuggested, $sameUserGroupAsMe);
$categories = Category::getAllCategories(false, true, $advancedCustom->CategoryShowOnlySuggested, $sameUserGroupAsMe, true);
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
echo "<!-- categories found " . count($categories) . " -->";
foreach ($categories as $value) {