Commit 4bd82f28 authored by Nicholas Thompson's avatar Nicholas Thompson
Browse files

Fixing coder issue 'String concatenation should be formatted with a space...

Fixing coder issue 'String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms'
parent 61b02dce
......@@ -24,7 +24,7 @@ function uc_catalog_page_title_alter(&$title) {
if ( !strncmp($menu_item['path'], 'catalog', 7) &&
isset($menu_item['page_arguments'][0]) &&
($term = taxonomy_term_load($menu_item['page_arguments'][0])) &&
variable_get('page_title_vocab_'. $term->vocabulary_machine_name .'_showfield', 0) &&
variable_get('page_title_vocab_' . $term->vocabulary_machine_name . '_showfield', 0) &&
($term_title = page_title_load_title($term->tid, 'term')) ) {
$title = $term_title;
}
......@@ -42,7 +42,7 @@ function uc_catalog_page_title_pattern_alter(&$pattern, &$types) {
isset($menu_item['page_arguments'][0]) &&
($term = taxonomy_term_load($menu_item['page_arguments'][0])) ) {
$types['taxonomy'] = $term;
$pattern = variable_get('page_title_uc_catalog_'. $types['taxonomy']->vid, '');
$pattern = variable_get('page_title_uc_catalog_' . $types['taxonomy']->vid, '');
}
}
......@@ -55,7 +55,7 @@ function uc_catalog_page_title_settings() {
$vocabs = taxonomy_get_vocabularies();
foreach ($vocabs as $vocab) {
$settings['page_title_uc_catalog_'. $vocab->vid] = array(
$settings['page_title_uc_catalog_' . $vocab->vid] = array(
'label' => 'Ubercart Catalog - %vocab_name',
'label arguments' => array('%vocab_name' => $vocab->name),
'scopes' => array('global', 'taxonomy'),
......
Supports Markdown
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