Commit 57fe6927 authored by webchick's avatar webchick

#779390 by solotandem: Fixed esoteric invalid syntax bugs in core found by Grammar Parser module.

parent 6e82d23e
......@@ -352,7 +352,7 @@ function number_field_widget_validate($element, &$form_state) {
$message = t('Only numbers and the decimal separator (@separator) allowed in %field.', array('%field' => t($instance['label']), '@separator' => $field['settings']['decimal_separator']));
break;
case 'integer';
case 'integer':
$regexp = '@[^-0-9]@';
$message = t('Only numbers are allowed in %field.', array('%field' => t($instance['label'])));
break;
......
......@@ -888,7 +888,7 @@ function image_effect_definitions() {
$effect['name'] = $name;
$effect['data'] = isset($effect['data']) ? $effect['data'] : array();
$effects[$name] = $effect;
};
}
}
uasort($effects, '_image_effect_definitions_sort');
cache_set("image_effects:$langcode", $effects);
......
......@@ -178,10 +178,10 @@ function openid_test_html_openid2() {
*/
function openid_test_endpoint() {
switch ($_REQUEST['openid_mode']) {
case 'associate';
case 'associate':
_openid_test_endpoint_associate();
break;
case 'checkid_setup';
case 'checkid_setup':
_openid_test_endpoint_authenticate();
break;
}
......
......@@ -312,7 +312,7 @@ function system_themes_page() {
);
if (!empty($theme_groups['disabled'])) {
$theme_group_titles['disabled'] = format_plural(count($theme_groups['disabled']), 'Disabled theme', 'Disabled themes');
};
}
uasort($theme_groups['enabled'], 'system_sort_themes');
drupal_alter('system_themes_page', $theme_groups);
......
......@@ -19,7 +19,7 @@ function taxonomy_help($path, $arg) {
$output .= '<dl>';
$output .= '<dt>' . t('Creating vocabularies') . '</dt>';
$output .= '<dd>' . t('Users with sufficient <a href="@perm">permissions</a> can create <em>vocabularies</em> and <em>terms</em> through the <a href="@taxo">Taxonomy page</a>. The page listing the terms provides a drag-and-drop interface for controlling the order of the terms and sub-terms within a vocabulary, in a hierarchical fashion. A <em>controlled vocabulary</em> classifying music by genre with terms and sub-terms could look as follows:', array('@taxo' => url('admin/structure/taxonomy'), '@perm' => url('admin/people/permissions', array('fragment'=>'module-taxonomy'))));
$output .= '<ul><li>' . t ('<em>vocabulary</em>: Music'); '</li>';
$output .= '<ul><li>' . t ('<em>vocabulary</em>: Music') . '</li>';
$output .= '<ul><li>' . t('<em>term</em>: Jazz') . '</li>';
$output .= '<ul><li>' . t('<em>sub-term</em>: Swing') . '</li>';
$output .= '<li>' . t('<em>sub-term</em>: Fusion') . '</li></ul></ul>';
......
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