aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-23 15:07:49 -0500
committercash <cash.costello@gmail.com>2011-12-23 15:07:49 -0500
commit23a912aa6678bb16f866b01c175b8e73e7bf417d (patch)
tree57051f26819d746cfe51b189e2bba4ec12eeede3 /mod
parent3d3312d47597249def3ed8efdcbf68869e3fef31 (diff)
downloadelgg-23a912aa6678bb16f866b01c175b8e73e7bf417d.tar.gz
elgg-23a912aa6678bb16f866b01c175b8e73e7bf417d.tar.bz2
Refs #4239 fixed upgrade scripts with bad limits
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/start.php3
-rw-r--r--mod/groups/upgrades/2011030101.php6
2 files changed, 7 insertions, 2 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index fa57e7b96..4b825fc1f 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -248,7 +248,8 @@ function blog_run_upgrades($event, $type, $details) {
$ia = elgg_set_ignore_access(true);
$options = array(
'type' => 'object',
- 'subtype' => 'blog'
+ 'subtype' => 'blog',
+ 'limit' => 0,
);
$blogs = new ElggBatch('elgg_get_entities', $options);
diff --git a/mod/groups/upgrades/2011030101.php b/mod/groups/upgrades/2011030101.php
index c2a80c08c..666ae3736 100644
--- a/mod/groups/upgrades/2011030101.php
+++ b/mod/groups/upgrades/2011030101.php
@@ -43,7 +43,11 @@ function groups_2011030101($topic) {
return $annotation[0]->delete();
}
-$options = array('type' => 'object', 'subtype' => 'groupforumtopic');
+$options = array(
+ 'type' => 'object',
+ 'subtype' => 'groupforumtopic',
+ 'limit' => 0,
+);
$batch = new ElggBatch('elgg_get_entities', $options, 'groups_2011030101', 100);
if ($batch->callbackResult) {