Revision 144
Added by ryan about 19 years ago
trunk/wb/admin/settings/tool.php | ||
---|---|---|
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
// check if tool is installed |
37 |
$query_result=$database->query("SELECT * FROM ".TABLE_PREFIX."modules WHERE type='tool' AND name='{$_GET['tool']}'");
|
|
37 |
$query_result=$database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND name = '{$_GET['tool']}'");
|
|
38 | 38 |
if ($query_result->numRows()==0) { |
39 | 39 |
header("Location: index.php"); |
40 | 40 |
} |
trunk/wb/admin/settings/index.php | ||
---|---|---|
125 | 125 |
|
126 | 126 |
// Insert groups into signup list |
127 | 127 |
$template->set_block('main_block', 'tool_list_block', 'tool_list'); |
128 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."modules WHERE type = 'tool'");
|
|
128 |
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool'");
|
|
129 | 129 |
$tool_list_empty=true; |
130 | 130 |
if($results->numRows() > 0) { |
131 | 131 |
while($tool = $results->fetchRow()) { |
Also available in: Unified diff
Updated tool-handling code