Project

General

Profile

Bug #14429 ยป 0000570-tslib_menu.diff

Administrator Admin, 2004-12-01 15:28

View differences:

class.tslib_menu_new.php 2004-12-01 15:25:12.523872000 +0100
$titleLen = strlen($title);
for ($a=0;$a<$titleLen;$a++) {
$key = strtoupper(trim(substr($title,$a,1)));
if ($key && !isset($GLOBALS['TSFE']->accessKey[$key])) {
if (preg_match('/[a-zA-Z]/', $key) && !isset($GLOBALS['TSFE']->accessKey[$key])) {
$GLOBALS['TSFE']->accessKey[$key]=1;
$result['code'] = ' accesskey="'.$key.'"';
$result['alt'] = ' (ALT+'.$key.')';
    (1-1/1)