Skip to content

Commit

Permalink
Reset the time limit to 30 seconds every time we delete a child. Fixe…
Browse files Browse the repository at this point in the history
…s ticket #1199.
  • Loading branch information
bharat committed Jul 10, 2010
1 parent ab6025f commit 0a42d74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gallery/libraries/ORM_MPTT.php
Expand Up @@ -92,6 +92,7 @@ public function delete($ignored_id=null) {
// 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();
}

Expand Down

0 comments on commit 0a42d74

Please sign in to comment.