Revision 170
Added by ryan about 19 years ago
index.php | ||
---|---|---|
37 | 37 |
$template->set_block('main_block', 'language_list_block', 'language_list'); |
38 | 38 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language'"); |
39 | 39 |
if($result->numRows() > 0) { |
40 |
while ($addon = $result->fetchRow()) {
|
|
40 |
while($addon = $result->fetchRow()) { |
|
41 | 41 |
$template->set_var('VALUE', $addon['directory']); |
42 | 42 |
$template->set_var('NAME', $addon['name'].' ('.$addon['directory'].')'); |
43 | 43 |
$template->parse('language_list', 'language_list_block', true); |
Also available in: Unified diff
Fixed addon listing in numerous places so it now use's DB for info