Skip to content

Commit

Permalink
Merge pull request #61 from catalyst/increase-time-limit
Browse files Browse the repository at this point in the history
Increase php time limit for library export/import
  • Loading branch information
Peterburnett authored Sep 19, 2024
2 parents 0148599 + 6ae3657 commit 64f0277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions export_libraries.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

admin_externalpage_setup('h5plibraries');

\core_php_time_limit::raise();

$COURSE = $SITE;

$interface = mod_hvp\framework::instance('interface');
Expand Down
1 change: 1 addition & 0 deletions library_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
$uploadform = new \mod_hvp\upload_libraries_form();
if ($formdata = $uploadform->get_data()) {
// Handle submitted valid form.
\core_php_time_limit::raise();
$h5pstorage = \mod_hvp\framework::instance('storage');
$h5pstorage->savePackage(null, null, true);
}
Expand Down

0 comments on commit 64f0277

Please sign in to comment.