Project

General

Profile

« Previous | Next » 

Revision 384

Added by Matthias almost 18 years ago

Added List sorting in admin area (thanks to rsmith)

View differences:

index.php
35 35

  
36 36
// Insert values into module list
37 37
$template->set_block('main_block', 'module_list_block', 'module_list');
38
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module'");
38
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' order by name");
39 39
if($result->numRows() > 0) {
40 40
	while ($addon = $result->fetchRow()) {
41 41
		$template->set_var('VALUE', $addon['directory']);

Also available in: Unified diff