root/ip/tags/release_1_3_0_53/includes/functions_cms_menu.php

111163
163
				$select_name = STYLE_URL;
163
				$select_name = STYLE_URL;
164
				$dirname = 'templates';
164
				$dirname = 'templates';
165
165
166
				$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY template_name, themes_id";
166
				$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY style_name, themes_id";
167
				if ( !($result = $db->sql_query($sql, false, 'themes_')) )
167
				if ( !($result = $db->sql_query($sql, false, 'themes_')) )
168
				{
168
				{
169
					message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
169
					message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);