aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-23 15:32:15 -0500
committercash <cash.costello@gmail.com>2011-12-23 15:32:15 -0500
commit74f3f133432cfd4100b04db66b57dcc19ab09a20 (patch)
tree05d5191291df6f635f5771acb7784df6f6e94b0f /mod
parentc0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6 (diff)
downloadelgg-74f3f133432cfd4100b04db66b57dcc19ab09a20.tar.gz
elgg-74f3f133432cfd4100b04db66b57dcc19ab09a20.tar.bz2
added access override to the forum upgrade
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/upgrades/2011030101.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/groups/upgrades/2011030101.php b/mod/groups/upgrades/2011030101.php
index 666ae3736..9ed5b321b 100644
--- a/mod/groups/upgrades/2011030101.php
+++ b/mod/groups/upgrades/2011030101.php
@@ -25,7 +25,7 @@ foreach ($topics as $topic) {
/**
- * Condense annotation into object
+ * Condense first annotation into object
*
* @param ElggObject $topic
*/
@@ -43,12 +43,14 @@ function groups_2011030101($topic) {
return $annotation[0]->delete();
}
+$previous_access = elgg_set_ignore_access(true);
$options = array(
'type' => 'object',
'subtype' => 'groupforumtopic',
'limit' => 0,
);
$batch = new ElggBatch('elgg_get_entities', $options, 'groups_2011030101', 100);
+elgg_set_ignore_access($previous_access);
if ($batch->callbackResult) {
error_log("Elgg Groups upgrade (2011030101) succeeded");