Project

General

Profile

« Previous | Next » 

Revision 887

Added by aldus over 15 years ago

add 'order by name' to the select-query to display the admintools in alphabetic order.

View differences:

trunk/wb/admin/admintools/index.php
41 41

  
42 42
// Insert tools into tool list
43 43
$template->set_block('main_block', 'tool_list_block', 'tool_list');
44
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool'");
44
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' order by name");
45 45
if($results->numRows() > 0) {
46 46
	while($tool = $results->fetchRow()) {
47 47
		$template->set_var('TOOL_NAME', $tool['name']);

Also available in: Unified diff