diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-28 20:06:42 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-28 20:06:42 +0000 |
commit | 775a5f08c501acc565c69659022bc31052677485 (patch) | |
tree | 2af38e1ae7a900cad2205af9737c91e679f5398e /engine/lib/entities.php | |
parent | 863a99d057dd776d88c38f16fcf7c07ca3431cf3 (diff) | |
download | elgg-775a5f08c501acc565c69659022bc31052677485.tar.gz elgg-775a5f08c501acc565c69659022bc31052677485.tar.bz2 |
Fixes #1196: ElggEntity::disable() now accepts a 2nd arg for recursive. New users are not recursively disabled for plugins that need to create entities owned by the new user upon entity creation.
git-svn-id: https://code.elgg.org/elgg/trunk@3450 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 19d9051e3..b8c92ec42 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -691,10 +691,11 @@ * Disable this entity.
*
* @param string $reason Optional reason
+ * @param bool $recursive Recursively disable all contained entities?
*/
- public function disable($reason = "")
+ public function disable($reason = "", $recursive = true)
{
- return disable_entity($this->get('guid'), $reason);
+ return disable_entity($this->get('guid'), $reason, $recursive);
}
/**
|