remove WebGUI::Utility::isBetween

This commit is contained in:
Graham Knop 2010-08-20 12:29:08 -05:00
parent a34f51a903
commit 631c4fe38c
3 changed files with 4 additions and 44 deletions

View file

@ -1013,7 +1013,9 @@ sub setRank {
next;
}
last unless $sibling;
if (isBetween($sibling->getRank, $newRank, $currentRank)) {
my $rank = $sibling->getRank;
if ($rank >= $newRank && $rank <= $currentRank
|| $rank >= $currentRank && $rank <= $newRank) {
$outputSub->('moving %s', $sibling->getTitle);
$sibling->cascadeLineage($previous);
$previous = $sibling->lineage;