mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix category
This commit is contained in:
parent
f825f25377
commit
018e2a2d36
|
@ -36,8 +36,7 @@ class BlockCategoryUpdate extends Block {
|
|||
if ($oTarget) {
|
||||
$aBehaviors=$oTarget->GetBehaviors();
|
||||
foreach($aBehaviors as $oBehavior) {
|
||||
$sClassRoot=$this->Plugin_GetRootDelegater('entity',get_class($oBehavior));
|
||||
if ($sClassRoot=='ModuleCategory_BehaviorEntity') {
|
||||
if ($oBehavior instanceof ModuleCategory_BehaviorEntity) {
|
||||
/**
|
||||
* Нужное нам поведение - получаем список текущих категорий
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue