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 language list
37 37
$template->set_block('main_block', 'language_list_block', 'language_list');
38
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language'");
38
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' 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