From c17533c33c16e09622c70c8ba58977e766ec6975 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Nov 2010 23:37:42 -0700 Subject: [PATCH] phpdoc --- framework/Core/lib/Horde.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 274d7c319..111e50484 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -1277,14 +1277,14 @@ HTML; } /** - * Constructs a correctly-pathed link to an image. + * Constructs a correctly-pathed tag to an image. * - * @param mixed $src The image file (either a string or a - * Horde_Themes_Image object). - * @param string $alt Text describing the image. - * @param mixed $attr Any additional attributes for the image tag. Can be - * a pre-built string or an array of key/value pairs - * that will be assembled and html-encoded. + * @param mixed $src The image file (either a string or a + * Horde_Themes_Image object). + * @param string $alt Text describing the image. + * @param mixed $attr Any additional attributes for the image tag. Can + * be a pre-built string or an array of key/value + * pairs that will be assembled and html-encoded. * * @return string The full image tag. */ @@ -1307,11 +1307,9 @@ HTML; } $img = ' $value) { - $img .= ' ' . $attribute . '="' . htmlspecialchars($value) . '"'; + $img .= ' ' . $attribute . '="' . @htmlspecialchars($value) . '"'; } - error_reporting($old_error); /* If the user supplied a pre-built string of attributes, add that. */ if (is_string($attr) && !empty($attr)) { @@ -1323,11 +1321,11 @@ HTML; } /** - * Same as self::img(), but returns a full source url for the image. + * Same as img(), but returns a full source url for the image. * Useful for when the image may be part of embedded Horde content on an - * external site. Basically a stop-gap measure until Horde_View etc... + * external site. * - * @see self::img() + * @see img() */ static public function fullSrcImg($src, $options = array()) { @@ -1355,6 +1353,7 @@ HTML; $img .= ' ' . $attribute . '="' . htmlspecialchars($value) . '"'; } } + /* If the user supplied a pre-built string of attributes, add * that. */ if (is_string($options['attr'])) { -- 2.11.0