Skip to content
Browse files

Upgrade_log stuff needed adminlib.php included

  • Loading branch information...
1 parent d90f5d7 commit 51df210337a9f27fb6793ef78c2bc83ac975baf2 moodler committed Sep 3, 2006
Showing with 9 additions and 7 deletions.
  1. +2 −1 backup/backup.php
  2. +7 −6 backup/restore.php
View
3 backup/backup.php
@@ -7,6 +7,7 @@
require_once ("lib.php");
require_once ("backuplib.php");
require_once ("$CFG->libdir/blocklib.php");
+ require_once ("$CFG->libdir/adminlib.php");
$id = optional_param( 'id' ); // course id
$to = optional_param( 'to' ); // id of course to import into afterwards.
@@ -129,4 +130,4 @@
//Print footer
print_footer();
-?>
+?>
View
13 backup/restore.php
@@ -4,14 +4,15 @@
//Define some globals for all the script
//Units used
- require_once ("../config.php");
- require_once ("../lib/xmlize.php");
- require_once ("../course/lib.php");
- require_once ("lib.php");
- require_once ("restorelib.php");
- require_once ("bb/restore_bb.php");
+ require_once("../config.php");
+ require_once("../lib/xmlize.php");
+ require_once("../course/lib.php");
+ require_once("lib.php");
+ require_once("restorelib.php");
+ require_once("bb/restore_bb.php");
require_once("$CFG->libdir/blocklib.php");
require_once("$CFG->libdir/wiki_to_markdown.php" );
+ require_once("$CFG->libdir/adminlib.php");
//Optional
$id = optional_param( 'id' );

0 comments on commit 51df210

Please sign in to comment.
Something went wrong with that request. Please try again.