Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -243,9 +243,7 @@ |
244 | 244 | return self::error( 'imagemap_no_image' ); |
245 | 245 | } |
246 | 246 | |
247 | | - if ( $mapHTML == '' && $defaultLinkAttribs == '' ) { |
248 | | - return self::error( 'imagemap_no_areas' ); |
249 | | - } elseif ( $mapHTML == '' && $defaultLinkAttribs != '' ) { |
| 247 | + if ( $mapHTML == '' ) { |
250 | 248 | // no areas defined, default only. It's not a real imagemap, so we do not need some tags |
251 | 249 | $realmap = false; |
252 | 250 | } |
Index: trunk/extensions/ImageMap/ImageMap.i18n.php |
— | — | @@ -20,7 +20,6 @@ |
21 | 21 | 'imagemap_invalid_title' => 'Error: invalid title in link at line $1', |
22 | 22 | 'imagemap_missing_coord' => 'Error: not enough coordinates for shape at line $1', |
23 | 23 | 'imagemap_unrecognised_shape' => 'Error: unrecognised shape at line $1, each line must start with one of: default, rect, circle or poly', |
24 | | - 'imagemap_no_areas' => 'Error: at least one area specification must be given', |
25 | 24 | 'imagemap_invalid_coord' => 'Error: invalid coordinate at line $1, must be a number', |
26 | 25 | 'imagemap_invalid_desc' => 'Error: invalid desc specification, must be one of: <code>$1</code>', |
27 | 26 | 'imagemap_description' => 'About this image', |