Permalink
Browse files

Default alt text for an image is an empty string

Closes #20
  • Loading branch information...
1 parent 5b4eb59 commit c327236393c2bf8a589ed2a89ec3b39e611ef5f7 @dmyers dmyers committed with Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 classes/casset.php
  2. +1 −1 quickref.md
View
@@ -1213,7 +1213,7 @@ public static function set_filepath_callback($callback) {
* @param array $attr Attributes to apply to each image (eg width)
* @return string The resulting <img> tag(s)
*/
- public static function img($images, $alt, $attr = array())
+ public static function img($images, $alt = '', $attr = array())
{
if (!is_array($images))
$images = array($images);
View
@@ -366,7 +366,7 @@ Images
### img
Locates the given image(s), and returns the resulting `<img>` tag(s).
-`string function img($images, $alt, $attr = array()`.
+`string function img($images, $alt = '', $attr = array()`.
`$images`: Either a string of an image, or an array of such images. Namespaces are allowed.

0 comments on commit c327236

Please sign in to comment.