summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-07-11 09:09:52 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-07-11 09:09:52 -0700
commit329abfe539371b65c95e3334e436f997ec92879f (patch)
tree0a3ee6e19be8563af6b6b6d87db795a0e6f463e2 /modules/gallery/libraries
parent213807a8073138a98b8daf9fe265e981454aaa50 (diff)
parent0389dceb475597ecdedf519d27d6d7bb36aa6276 (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index e5b8ecd4..d8d88e4e 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -92,6 +92,7 @@ class ORM_MPTT_Core extends ORM {
// Deleting children affects the MPTT tree, so we have to reload each child before we
// delete it so that we have current left_ptr/right_ptr pointers. This is inefficient.
// @todo load each child once, not twice.
+ set_time_limit(30);
$item->reload()->delete();
}
@@ -175,7 +176,7 @@ class ORM_MPTT_Core extends ORM {
}
/**
- * Return all of the children of this node, ordered by id.
+ * Return the number of children of this node.
*
* @chainable
* @param array additional where clauses