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['pagetitle'] = $title;
$tplVars['subtitle'] = $title; $tplVars['subtitle'] = $title;
} }
$tplVars['summarizeLinkedTags'] = true;
$templateservice->loadTemplate($templatename, $tplVars); $templateservice->loadTemplate($templatename, $tplVars);
if ($usecache && $endcache) { if ($usecache && $endcache) {

View file

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

View file

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