Issue Bug Closed

#28686menu generation for shortcuts on translated pages broken.

Björn Pedersen 08/02/11, 18:18 updated 01/23/15, 13:17

Description

The shortcut change (https://review.typo3.org/#change,3413) breaks translated sites menus.

Catchable Fatal Error: Argument 1 passed to t3lib_div::implodeAttributes() must be an array, boolean given, called in /home/webmaster/frm2/typo3_src_git/typo3/sysext/cms/tslib/class.tslib_menu.php on line 1504 and defined in /home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php line 1918 (More information)

t3lib_error_Exception thrown in file
/home/webmaster/frm2/typo3_src_git/t3lib/error/class.t3lib_error_errorhandler.php in line 105.

35 t3lib_error_ErrorHandler::handleError(4096, "Argument 1 passed to t3lib_div::implodeAttributes(…slib/class.tslib_menu.php on line 1504 and defined", "/home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php", 1918, array)

/home/webmaster/frm2/typo3_src_git/t3lib/class.t3lib_div.php:

01916:   * @return string Imploded attributes, eg. 'bgcolor="red" border="0"'
01917:   */

01918:  public static function implodeAttributes(array $arr, $xhtmlSafe = FALSE, $dontOmitBlankAttribs = FALSE) {

01919:   if ($xhtmlSafe) {
01920:    $newArr = array();

34 t3lib_div::implodeAttributes(boolean, 1)

/home/webmaster/frm2/typo3_src_git/typo3/sysext/cms/tslib/class.tslib_menu.php:

01502:  function setATagParts() {
01503:   debug($this->I,'I');

01504:   $this->I['A1'] = 'I['linkHREF'],1).' '.$this->I['val']['ATagParams'].$this->I['accessKey']['code'].'>';

01505:   $this->I['A2'] = '';
01506:  }

reason:

linkHREF

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.