Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | function oledrion_com_update($product_id, $total_num) |
||
25 | { |
||
26 | require_once XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php'; |
||
27 | global $productsHandler; |
||
28 | if (!is_object($productsHandler)) { |
||
29 | // $handlers = HandlerManager::getInstance(); |
||
30 | $productsHandler = $handlers->oledrion_products; |
||
|
|||
31 | } |
||
32 | $productsHandler->updateCommentsCount($product_id, $total_num); |
||
33 | } |
||
42 |