Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | function b_waiting_xmdoc() |
||
24 | { |
||
25 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
26 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
27 | $ret = []; |
||
28 | $block = []; |
||
29 | $sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('xmdoc_document') . ' WHERE document_status=0'; |
||
30 | $result = $xoopsDB->query($sql); |
||
31 | if ($result) { |
||
32 | $block['adminlink'] = XOOPS_URL . '/modules/xmdoc/admin/document.php?category=0&status=0'; |
||
33 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
|
|||
34 | $block['lang_linkname'] = _PI_WAITING_DOC; |
||
35 | } |
||
36 | |||
37 | $ret[] = $block; |
||
38 | |||
39 | return $ret; |
||
40 | } |
||
41 |