mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update category retrieval to respect suggested categories setting
This commit is contained in:
parent
1838c72c8f
commit
fbbf3bc3ab
2 changed files with 49 additions and 48 deletions
|
@ -367,6 +367,7 @@ class CustomizeAdvanced extends PluginAbstract {
|
||||||
$obj->doNotShowLeftTrendingButton = false;
|
$obj->doNotShowLeftTrendingButton = false;
|
||||||
|
|
||||||
$obj->CategoryLabel = "Categories";
|
$obj->CategoryLabel = "Categories";
|
||||||
|
$obj->CategoryShowOnlySuggested = false;
|
||||||
$obj->ShowAllVideosOnCategory = false;
|
$obj->ShowAllVideosOnCategory = false;
|
||||||
$obj->hideCategoryVideosCount = false;
|
$obj->hideCategoryVideosCount = false;
|
||||||
$obj->hideEditAdvancedFromVideosManager = false;
|
$obj->hideEditAdvancedFromVideosManager = false;
|
||||||
|
|
|
@ -582,7 +582,7 @@ $tToleranceSide = 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
|
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
|
||||||
$categories = Category::getAllCategories(false, true, false, $sameUserGroupAsMe);
|
$categories = Category::getAllCategories(false, true, $advancedCustom->CategoryShowOnlySuggested, $sameUserGroupAsMe);
|
||||||
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
|
TimeLogEnd($tnameSide, __LINE__, $tToleranceSide);
|
||||||
echo "<!-- categories found " . count($categories) . " -->";
|
echo "<!-- categories found " . count($categories) . " -->";
|
||||||
foreach ($categories as $value) {
|
foreach ($categories as $value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue