objectManager: Cosmetic changes for some admin links

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-22 21:53:13 +02:00
committed by Alexander Nicolaysen Sørnes
parent c7da357a4c
commit 6cfcf5811f

View File

@@ -1125,6 +1125,7 @@ class ObjectManager
} }
} }
/* Returns true if the link was displayed */
private function displayMoveChildren($oObject) private function displayMoveChildren($oObject)
{ {
/* Display a link to the move child objects page if the class has the necessary /* Display a link to the move child objects page if the class has the necessary
@@ -1134,7 +1135,10 @@ class ObjectManager
{ {
echo "<a href=\"".$this->makeUrl("showMoveChildren", $this->iId, echo "<a href=\"".$this->makeUrl("showMoveChildren", $this->iId,
"Move Child Objects")."\">Move child objects</a>\n"; "Move Child Objects")."\">Move child objects</a>\n";
return true;
} }
return false;
} }
/* Gets the title of the page to be displayed. Classes can set /* Gets the title of the page to be displayed. Classes can set
@@ -1202,8 +1206,9 @@ class ObjectManager
else else
$oObject->display($aVars); $oObject->display($aVars);
echo '<br />';
// display the move children entry // display the move children entry
$this->displayMoveChildren($oObject); if($this->displayMoveChildren($oObject))
echo " &nbsp; &nbsp; "; echo " &nbsp; &nbsp; ";
$this->displayChangeParent($oObject); $this->displayChangeParent($oObject);