@@ 13-17 (lines=5) @@ | ||
10 | // mylinks links |
|
11 | $block = array(); |
|
12 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . ' WHERE status=0'); |
|
13 | if ($result) { |
|
14 | $block['adminlink'] = XOOPS_URL . '/modules/mylinks/admin/main.php?op=listNewLinks'; |
|
15 | list($block['pendingnum']) = $xoopsDB->fetchRow($result); |
|
16 | $block['lang_linkname'] = _PI_WAITING_WAITINGS; |
|
17 | } |
|
18 | $ret[] = $block; |
|
19 | ||
20 | // mylinks broken |
|
@@ 38-43 (lines=6) @@ | ||
35 | $modreqHandler = xoops_getModuleHandler('modification', 'mylinks'); |
|
36 | $result = $modreqHandler->getCount(); |
|
37 | // $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_mod")); |
|
38 | if ($result) { |
|
39 | $block['adminlink'] = XOOPS_URL . '/modules/mylinks/admin/main.php?op=listModReq'; |
|
40 | // list($block['pendingnum']) = $xoopsDB->fetchRow($result); |
|
41 | $block['pendingnum'] = $result; |
|
42 | $block['lang_linkname'] = _PI_WAITING_MODREQS; |
|
43 | } |
|
44 | $ret[] = $block; |
|
45 | ||
46 | return $ret; |