From 2076473df05360e3d906c1cbba98233a467ecf90 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 27 Nov 2009 06:24:43 +0000 Subject: [PATCH] + add $misc param to a(). --- trunk/lib/front/front.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trunk/lib/front/front.class.php b/trunk/lib/front/front.class.php index 4c456568a0..e2ef0bf755 100644 --- a/trunk/lib/front/front.class.php +++ b/trunk/lib/front/front.class.php @@ -29,12 +29,13 @@ class html * @param string $href the link url. * @param string $title the link title. * @param string $target the target window + * @param string $misc other params. */ - static public function a($href = '', $title = '', $target = "_self") + static public function a($href = '', $title = '', $target = "_self", $misc = '') { if(empty($title)) $title = $href; - if($target == '_self') return "$title\n"; - return "$title\n"; + if($target == '_self') return "$title"; + return "$title"; } /** @@ -46,7 +47,7 @@ class html static public function mailto($mail = '', $title = '') { if(empty($title)) $title = $mail; - return "$title\n"; + return "$title"; } /**