From 6cfcf5811fd294e2c91e3a0d6b1f73931c66f13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 22 Apr 2009 21:53:13 +0200 Subject: [PATCH] objectManager: Cosmetic changes for some admin links --- include/objectManager.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index e44f6cc..74760b2 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -1125,6 +1125,7 @@ class ObjectManager } } + /* Returns true if the link was displayed */ private function displayMoveChildren($oObject) { /* Display a link to the move child objects page if the class has the necessary @@ -1134,7 +1135,10 @@ class ObjectManager { echo "makeUrl("showMoveChildren", $this->iId, "Move Child Objects")."\">Move child objects\n"; + return true; } + + return false; } /* Gets the title of the page to be displayed. Classes can set @@ -1202,9 +1206,10 @@ class ObjectManager else $oObject->display($aVars); + echo '
'; // display the move children entry - $this->displayMoveChildren($oObject); - echo "     "; + if($this->displayMoveChildren($oObject)) + echo "     "; $this->displayChangeParent($oObject); echo html_back_link(1, $sBackLink);