//class; if ( \IPS\Request::i()->subnode ) { $nodeClass = $nodeClass::$subnodeClass; } try { $node = $nodeClass::load( $id ); } catch ( \OutOfRangeException $e ) { throw new \IPS\Api\Exception( 'INVALID_ID', '2F363/8', 404 ); } if ( $dbCategory = $node->isUsedByADownloadsCategory() ) { throw new \IPS\Api\Exception( 'FORUM_USED_BY_DOWNLOADS', '2F363/9', 403 ); } else { return parent::_delete( $id, $deleteChildrenOrMove ); } } }