Revision 122
Added by ryan about 20 years ago
| trunk/wb/admin/settings/index.php | ||
|---|---|---|
| 129 | 129 |
$tool_list_empty=true; |
| 130 | 130 |
if($results->numRows() > 0) {
|
| 131 | 131 |
while($tool = $results->fetchRow()) {
|
| 132 |
$template->set_var('LINK', '<a href="'.ADMIN_URL.'/settings/tool.php?tool='.$tool['directory'].'">'.$tool['name'].'</a>');
|
|
| 132 |
$template->set_var('TOOL_NAME', $tool['name']);
|
|
| 133 |
$template->set_var('TOOL_DIR', $tool['directory']);
|
|
| 133 | 134 |
} |
| 134 | 135 |
} else {
|
| 135 | 136 |
$template->set_var('LINK', $TEXT['NONE_FOUND']);
|
| 137 |
|
|
| 136 | 138 |
} |
| 137 | 139 |
$template->parse('tool_list', 'tool_list_block', true);
|
| 138 | 140 |
|
| trunk/wb/admin/settings/template.html | ||
|---|---|---|
| 580 | 580 |
<tr class="advanced"> |
| 581 | 581 |
<td> |
| 582 | 582 |
<!-- BEGIN tool_list_block --> |
| 583 |
{LINK}
|
|
| 583 |
<a href="{ADMIN_URL}/settings/tool.php?tool={TOOL_DIR}">{TOOL_NAME}</a>
|
|
| 584 | 584 |
<!-- END tool_list_block --> |
| 585 | 585 |
{TOOL_LIST}
|
| 586 | 586 |
</td> |
Also available in: Unified diff
Fixed mis-use of templating for Administrative Tools section