interface bug fix: alltags page doesn't display the complete tree for a user

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@23 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-01-23 14:47:35 +00:00
parent d419572c28
commit 47f8a6dd9e
3 changed files with 8 additions and 4 deletions

View File

@ -221,6 +221,9 @@ if ($templatename == 'editbookmark.tpl') {
$tplVars['pagetitle'] = $title;
$tplVars['subtitle'] = $title;
}
$tplVars['summarizeLinkedTags'] = true;
$templateservice->loadTemplate($templatename, $tplVars);
if ($usecache && $endcache) {

View File

@ -77,6 +77,7 @@ $tplVars['total'] = $bookmarks['total'];
$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('tags', '%2$s');
$tplVars['nav_url'] = createURL('index', '%3$s');
$tplVars['summarizeLinkedTags'] = true;
$templateservice->loadTemplate('bookmarks.tpl', $tplVars);

View File

@ -25,7 +25,7 @@ function displayLinkedTags($tag, $linkType, $uId, $cat_url, $user, $editingMode
$output.= '</tr>';
if(!in_array($tag, $stopList)) {
$linkedTags = $tag2tagservice->getLinkedTags($tag, '>', $userid);
$linkedTags = $tag2tagservice->getLinkedTags($tag, '>', $uId);
$precedentTag = $tag;
$stopList[] = $tag;
$level = $level + 1;
@ -45,10 +45,10 @@ $explodedTags = array();
if ($currenttag) {
$explodedTags = explode('+', $currenttag);
} else {
if($userid != null) {
$orphewTags = $tag2tagservice->getOrphewTags('>', $userid);
} else {
if($summarizeLinkedTags == true) {
$orphewTags = $tag2tagservice->getOrphewTags('>', $userid, 4, "nb");
} else {
$orphewTags = $tag2tagservice->getOrphewTags('>', $userid);
}
foreach($orphewTags as $orphewTag) {