Commit 9d6d3d78 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Fixed db_query() parameter error.

parent f03e2404
......@@ -15,9 +15,6 @@
* @see xmlsitemap_settings_form_validate()
*/
function xmlsitemap_settings_form() {
$form['xmlsitemap_settings'] = array(
'#type' => 'vertical_tabs',
);
$form['xmlsitemap'] = array(
'#type' => 'fieldset',
'#title' => t('Settings'),
......@@ -45,6 +42,9 @@ function xmlsitemap_settings_form() {
'#process' => array('form_process_checkboxes', '_xmlsitemap_process_language_checkboxes'),
'#description' => !module_exists('xmlsitemap_i18n') ? t('To enable multilingual features, enable the XML sitemap internationalization module.') : '',
);
$form['xmlsitemap_settings'] = array(
'#type' => 'vertical_tabs',
);
$form['advanced'] = array(
'#type' => 'fieldset',
......@@ -292,7 +292,7 @@ function xmlsitemap_add_form_type_summary(&$form, $type, $items) {
'#value' => theme('table', $header, $rows),
);
$count = db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = '%s' AND access = 1 AND status = 1", $type['type'])->fetchField();
$count = db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :type AND access = 1 AND status = 1", array(':type' => $type['type']))->fetchField();
$form[$type['type']]['count'] = array(
'#type' => 'item',
'#value' => format_plural($count, 'There is 1 @type link in the XML sitemap.', 'There are @count @type links in the XML sitemap.', array('@type' => drupal_strtolower($type['type']))),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment