openrat-cms

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

commit 5c9356c7c6ace45ca674ccda1e5540932ab940c2
parent fa1bdee530a25394c9301384e1e603be6b366204
Author: dankert <devnull@localhost>
Date:   Sun, 22 Apr 2007 22:20:21 +0200

Keine Variablen benutzen wie "$text", die global verwendet werden.

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

diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -46,13 +46,13 @@ $windowMenu = array(); foreach( $windowMenu as $menu ) { - $text = lang($menu['text']); - $key = strtoupper(lang($menu['key' ])); - $pos = strpos(strtolower($text),strtolower($key)); - if ( $pos !== false ) - $text = substr($text,0,max($pos,0)).'<span class="accesskey">'. substr($text,$pos,1).'</span>'.substr($text,$pos+1); + $tmp_text = lang($menu['text']); + $tmp_key = strtoupper(lang($menu['key' ])); + $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); + if ( $tmp_pos !== false ) + $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $text ?></a>&nbsp;&nbsp;&nbsp;<?php + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php } if ($conf['help']['enabled'] ) {