summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-10 15:10:13 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-10 15:10:20 -0700
commit0a42d74d5564efdfbbc7c575211d0954d7a01488 (patch)
treec448793a824aaa147b495fc96b3179ae2a08564b
parentab6025f71a46d4ed5948c6143ffc90df94c1eaa9 (diff)
Reset the time limit to 30 seconds every time we delete a child. Fixes ticket #1199.
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index e5b8ecd4..3a780d9e 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();
}