Author: david
Date: Fri Sep 11 13:03:20 2009
New Revision: 3231
Log:
Cosmetic change, change to .
Modified:
trunk/apps/qubit/modules/informationobject/actions/contextMenuComponent.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/contextMenuComponent.class.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/actions/contextMenuComponent.class.php
Fri Sep 11 12:57:34 2009 (r3230)
+++
trunk/apps/qubit/modules/informationobject/actions/contextMenuComponent.class.php
Fri Sep 11 13:03:20 2009 (r3231)
@@ -155,25 +155,25 @@
{
$tmp = array();
- foreach ($ancestor->getChildren() as $children)
+ foreach ($ancestor->getChildren() as $child)
{
// If ancestor is not the empty root node
// Or it children is in $path
// Or it children is the selected information object
- if (QubitInformationObject::ROOT_ID != $ancestor->getId() ||
in_array($children->getId(), $path) || $children->getId() ==
$this->informationObject->getId())
+ if (QubitInformationObject::ROOT_ID != $ancestor->getId() ||
in_array($child->getId(), $path) || $child->getId() ==
$this->informationObject->getId())
{
// Add the children
- $tmp[] = $children;
+ $tmp[] = $child;
// If it in path, we go on building the tree in that way
- if (in_array($children->getId(), $path))
+ if (in_array($child->getId(), $path))
{
- $tmp = array_merge($tmp,
$this->buildInformationObjectTree($children, $path));
+ $tmp = array_merge($tmp, $this->buildInformationObjectTree($child,
$path));
}
// If it is the selected information object, add it children
- else if ($children->getId() == $this->informationObject->getId())
+ else if ($child->getId() == $this->informationObject->getId())
{
- foreach ($children->getChildren() as $ch)
+ foreach ($child->getChildren() as $ch)
{
$tmp[] = $ch;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---