Project

General

Profile

« Previous | Next » 

Revision 1322

Added by Dietmar over 14 years ago

Ticket #984 Removing outdated comment-block in class.login.php
Ticket #983 Sorting order of modules and templates inside groups.php

View differences:

groups.php
86 86
	
87 87
	// Insert values into module list
88 88
	$template->set_block('main_block', 'module_list_block', 'module_list');
89
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page'");
89
	$result = $database->query('SELECT * FROM `'.TABLE_PREFIX.'addons` WHERE `type` = "module" AND `function` = "page" ORDER BY `name`');
90 90
	if($result->numRows() > 0) {
91 91
		while($addon = $result->fetchRow()) {
92 92
			$template->set_var('VALUE', $addon['directory']);
......
102 102
	
103 103
	// Insert values into template list
104 104
	$template->set_block('main_block', 'template_list_block', 'template_list');
105
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
105
	$result = $database->query('SELECT * FROM `'.TABLE_PREFIX.'addons` WHERE `type` = "template" ORDER BY `name`');
106 106
	if($result->numRows() > 0) {
107 107
		while($addon = $result->fetchRow()) {
108 108
			$template->set_var('VALUE', $addon['directory']);

Also available in: Unified diff