Alexander Nicolaysen Sørnes : Only show 'create new parent' link for applications
Alexander Nicolaysen Sørnes
asornes at winehq.org
Thu Jul 30 09:07:13 CDT 2009
Module: appdb
Branch: master
Commit: 8fbe27e679793f29c99bd581d10f7562fb65c74b
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=8fbe27e679793f29c99bd581d10f7562fb65c74b
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Jul 30 16:06:15 2009 +0200
Only show 'create new parent' link for applications
---
include/application.php | 5 +++++
include/objectManager.php | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/include/application.php b/include/application.php
index 4112c0b..2a1a704 100644
--- a/include/application.php
+++ b/include/application.php
@@ -1439,6 +1439,11 @@ class Application {
return $iCount;
}
+ public static function objectAllowMovingToNewParent()
+ {
+ return TRUE;
+ }
+
public static function allowAnonymousSubmissions()
{
return FALSE;
diff --git a/include/objectManager.php b/include/objectManager.php
index 4235279..3af090c 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -921,7 +921,8 @@ class ObjectManager
$sClassDisplayName = $oParentOM->GetOptionalSetting('objectGetClassDisplayName', 'parent entry');
- echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
+ if($this->GetOptionalSetting('objectAllowMovingToNewParent', false))
+ echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
/* Display some help text */
echo "<p>Move ".$oObject->objectMakeLink()." to the $sClassDisplayName ";
More information about the wine-cvs
mailing list