diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 49bffa4..e1c7326 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1886,6 +1886,7 @@ function template_preprocess_image(&$variables) { } // Remove 'image' from the class array. This is added through // template_preprocess() but we do not need it. + // @todo Remove after http://drupal.org/node/1938430 is resolved. $attributes['class'] = array_diff($attributes['class'], array('image')); $variables['attributes'] = new Attribute($attributes); diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php index b4be34b..e17326a 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php @@ -70,7 +70,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -91,7 +91,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -113,7 +113,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -135,7 +135,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -153,7 +153,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -174,7 +174,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -194,7 +194,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -215,7 +215,7 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -233,6 +233,6 @@ function testImageDimensions() { image_effect_save($style, $effect); $img_tag = theme_image_style($variables); - $this->assertEqual(trim($img_tag), ''); + $this->assertEqual(trim($img_tag), ''); } } diff --git a/core/modules/system/templates/image.html.twig b/core/modules/system/templates/image.html.twig index 1251c1d..af98ba4 100644 --- a/core/modules/system/templates/image.html.twig +++ b/core/modules/system/templates/image.html.twig @@ -7,9 +7,9 @@ * - attributes: HTML attributes for the img tag. * * @see template_preprocess() - * @see template_preprcoess_image() + * @see template_preprocess_image() * * @ingroup themeable */ #} - +