Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Display teams at the right place
Browse files Browse the repository at this point in the history
Separate comments only by one BR
Unnecessary return instruction.
  • Loading branch information
cdujeu committed Nov 15, 2013
1 parent e9809f5 commit c9a1906
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion core/src/plugins/access.fs/class.fsAccessDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,6 @@ public function switchAction($action, $httpVars, $fileVars)
$this->logDebug("LS Time : ".intval((microtime()-$startTime)*1000)."ms");

AJXP_XMLWriter::close();
return ;

break;
}
Expand Down
14 changes: 7 additions & 7 deletions core/src/plugins/core.conf/class.AbstractConfDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,6 @@ public function switchAction($action, $httpVars, $fileVars)
}
$users = "";
$index = 0;
if (method_exists($this, "listUserTeams")) {
$teams = $this->listUserTeams();
foreach ($teams as $tId => $tData) {
$users.= "<li class='complete_group_entry' data-group='/AJXP_TEAM/$tId' data-label='[team] ".$tData["LABEL"]."'><span class='user_entry_label'>[team] ".$tData["LABEL"]."</span></li>";
}
}
if ($regexp != null && (!count($allUsers) || !array_key_exists($crtValue, $allUsers)) && ConfService::getCoreConf("USER_CREATE_USERS", "conf") && !$existingOnly) {
$users .= "<li class='complete_user_entry_temp' data-temporary='true' data-label='$crtValue'><span class='user_entry_label'>$crtValue (".$mess["448"].")</span></li>";
} else if ($existingOnly && !empty($crtValue)) {
Expand All @@ -928,13 +922,19 @@ public function switchAction($action, $httpVars, $fileVars)
if ($regexp == null && !$usersOnly) {
$users .= "<li class='complete_group_entry' data-group='/' data-label='".$mess["447"]."'><span class='user_entry_label'>".$mess["447"]."</span></li>";
}
if (!$usersOnly && count($allGroups)) {
if (!$usersOnly) {
foreach ($allGroups as $groupId => $groupLabel) {
if ($regexp == null || preg_match("/$regexp/i", $groupLabel)) {
$users .= "<li class='complete_group_entry' data-group='$groupId' data-label='$groupLabel' data-entry_id='$groupId'><span class='user_entry_label'>".$groupLabel."</span></li>";
}
}
}
if ($regexp == null && method_exists($this, "listUserTeams")) {
$teams = $this->listUserTeams();
foreach ($teams as $tId => $tData) {
$users.= "<li class='complete_group_entry' data-group='/AJXP_TEAM/$tId' data-label='[team] ".$tData["LABEL"]."'><span class='user_entry_label'>[team] ".$tData["LABEL"]."</span></li>";
}
}
foreach ($allUsers as $userId => $userObject) {
if($userObject->getId() == $loggedUser->getId()) continue;
if ( ( !$userObject->hasParent() && ConfService::getCoreConf("ALLOW_CROSSUSERS_SHARING", "conf")) || $userObject->getParent() == $loggedUser->getId() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function switchActions($actionName, $httpVars, $fileVars)
"rpath" => $rPath
);
if (isSet($previous) && $previous["author"] == $newItem["author"] && $previous["path"] == $newItem["path"] && $previous["hdate"] == $newItem["hdate"] ) {
$theFeed[count($theFeed) - 1]["content"].= '<br>--<br>'.$newItem["content"];
$theFeed[count($theFeed) - 1]["content"].= '<br>'.$newItem["content"];

} else {
$theFeed[] = $newItem;
Expand Down

0 comments on commit c9a1906

Please sign in to comment.