]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4239 fixed upgrade scripts with bad limits
authorcash <cash.costello@gmail.com>
Fri, 23 Dec 2011 20:07:49 +0000 (15:07 -0500)
committercash <cash.costello@gmail.com>
Fri, 23 Dec 2011 20:07:49 +0000 (15:07 -0500)
engine/lib/upgrades/2011030700-1.8_svn-blog_status_metadata-4645225d7b440876.php
engine/lib/upgrades/2011061200-1.8b1-sites_need_a_site_guid-6d9dcbf46c0826cc.php
mod/blog/start.php
mod/groups/upgrades/2011030101.php

index e4ab9c137307eee10cc9094b7545fe7ac07f8e20..fe2af99282595a1fa157530d08ff7067ce0f5500 100644 (file)
@@ -9,7 +9,8 @@
 $ia = elgg_set_ignore_access(true);
 $options = array(
        'type' => 'object',
-       'subtype' => 'blog'
+       'subtype' => 'blog',
+       'limit' => 0,
 );
 $batch = new ElggBatch('elgg_get_entities', $options);
 
index 4fc59ac4133de49a84b7eb9e2263c21d5baf0f3a..41ab29998474409c1d8b556bd2eb4e9116485b68 100644 (file)
@@ -16,6 +16,7 @@ access_show_hidden_entities(true);
 $options = array(
        'type' => 'site',
        'site_guid' => 0,
+       'limit' => 0,
 );
 $batch = new ElggBatch('elgg_get_entities', $options);
 
index fa57e7b96640db2f7a52f8a65b9aaa3bc00f91e0..4b825fc1fd9891f5cd20a3a92ce122cb6843f14f 100644 (file)
@@ -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);
index c2a80c08c4fff1e2956d3bad52e8c1049ab6dbb1..666ae3736c30fc160d07c3754d70f08b81b39f89 100644 (file)
@@ -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) {