openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ae177f85ea93c945ef4093b9a98cdb21d06a11bf
parent 8c07456dc43b6e22b0c034c2b64adbc1e97d1bf6
Author: dankert <devnull@localhost>
Date:   Wed, 23 Dec 2009 23:24:37 +0100

Nicht initialisierte Variablen nicht benutzen.

Diffstat:
themes/default/include/html/link.inc.php | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -25,12 +25,14 @@ #ELSE $attr_title = ''; #END-IF - + + $tmp_url = ''; + #IF-ATTR action# + $tmp_url = Html::url($attr_action,$attr_subaction,!empty($attr_id)?$attr_id:$this->getRequestId(),$params); + #END-IF #IF-ATTR url# $tmp_url = $attr_url; - #ELSE - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($attr_id)?$attr_id:$this->getRequestId(),$params); #END-IF - + ?><a<?php if (isset($attr_name)) echo ' name="'.$attr_name.'"'; else echo ' href="'.$tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'').'"' ?> class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>"<?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>"> \ No newline at end of file