Bug #18565 ยป bug0008023.diff
typo3_src-4.2.0/t3lib/class.t3lib_treeview.php 2008-06-10 15:31:27.000000000 -0400 | ||
---|---|---|
* @return string The title.
|
||
*/
|
||
function getTitleStr($row,$titleLen=30) {
|
||
//when an assosiation between the frontend and the backend language is found, look for a traduction title for the page in the page tree
|
||
if($GLOBALS['LANG']->sys_language_uid){
|
||
$rowoverlay= t3lib_BEfunc::getRecordRaw('pages_language_overlay','pid="'.$row['uid'].'" and sys_language_uid='.$GLOBALS['LANG']->sys_language_uid);
|
||
|
||
if($rowoverlay){
|
||
$row= $rowoverlay;
|
||
}
|
||
}
|
||
if ($this->ext_showNavTitle && strlen(trim($row['nav_title'])) > 0) {
|
||
$title = '<span title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_tca.xml:title',1).' '.htmlspecialchars(trim($row['title'])).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($row['nav_title'],$titleLen)).'</span>';
|
||
} else {
|
typo3_src-4.2.0/typo3/class.webpagetree.php 2008-06-10 15:34:07.000000000 -0400 | ||
---|---|---|
return '<span class="dragTitle" id="dragTitleID_'.$row['uid'].'">'.$thePageTitle.'</span>';
|
||
}
|
||
/**
|
||
* Create an assosiation between the frontend and the backend language and store it in $GLOBALS['LANG']->sys_language_uid
|
||
*
|
||
*/
|
||
function SetSys_Language_uid(){
|
||
$rowStatic= t3lib_BEfunc::getRecordRaw('static_languages','lg_typo3="'.$GLOBALS['LANG']->lang.'"');
|
||
if($rowStatic){
|
||
$row= t3lib_BEfunc::getRecordRaw('sys_language','static_lang_isocode="'.$rowStatic['uid'].'"');
|
||
$GLOBALS['LANG']->sys_language_uid=$row['uid'];
|
||
}
|
||
}
|
||
/**
|
||
* Compiles the HTML code for displaying the structure found inside the ->tree array
|
||
... | ... | |
* @return string The HTML code for the tree
|
||
*/
|
||
function printTree($treeArr = '') {
|
||
$this->SetSys_Language_uid();
|
||
$titleLen = intval($this->BE_USER->uc['titleLen']);
|
||
if (!is_array($treeArr)) {
|
||
$treeArr = $this->tree;
|