]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated ElggSite::disable() to conform to ElggEntity::disable()
authorCash Costello <cash.costello@gmail.com>
Fri, 21 Oct 2011 11:37:10 +0000 (07:37 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 21 Oct 2011 11:37:10 +0000 (07:37 -0400)
engine/classes/ElggSite.php

index 8708800cf475d97101e0dfbe5408bc02fb4acb92..16b80b9d35a5e24e409226bbfd37dada7b604e0c 100644 (file)
@@ -190,18 +190,19 @@ class ElggSite extends ElggEntity {
         * @note You cannot disable the current site.
         *
         * @param string $reason Optional reason for disabling
+        * @param bool   $recursive Recursively disable all contained entities?
         *
         * @return bool
         * @throws SecurityException
         */
-       public function disable($reason = "") {
+       public function disable($reason = "", $recursive = true) {
                global $CONFIG;
 
                if ($CONFIG->site->getGUID() == $this->guid) {
                        throw new SecurityException('SecurityException:deletedisablecurrentsite');
                }
 
-               return parent::disable($reason);
+               return parent::disable($reason, $recursive);
        }
 
        /**
@@ -225,7 +226,7 @@ class ElggSite extends ElggEntity {
                                'offset' => $offset,
                        );
                }
-               
+
                $defaults = array(
                        'relationship' => 'member_of_site',
                        'relationship_guid' => $this->getGUID(),