From 4894189c0c9a82a90f54f3d6b162d91da92dd821 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 25 Sep 2004 11:37:10 +0000 Subject: [PATCH] Added backup & restore to SITE page. Some changes from hardcoded '1' to SITEID. See Bug 1928 (http://moodle.org/bugs/bug.php?op=show&bugid=1928) Merged from MOODLE_14_STABLE --- blocks/admin/block_admin.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 1da94e9283..3eb8328ad2 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -40,6 +40,12 @@ class CourseBlock_admin extends MoodleBlock { $this->content->items[] = ''.get_string('users').'...'; $this->content->icons[] = ''; + + $this->content->items[]=''.get_string('backup').'...'; + $this->content->icons[]=''; + + $this->content->items[]=''.get_string('restore').'...'; + $this->content->icons[]=''; } if (iscreator()) { @@ -48,10 +54,10 @@ class CourseBlock_admin extends MoodleBlock { } if (isadmin()) { - $this->content->items[] = ''.get_string('logs').''; + $this->content->items[] = ''.get_string('logs').''; $this->content->icons[] = ''; - $this->content->items[] = ''.get_string('sitefiles').''; + $this->content->items[] = ''.get_string('sitefiles').''; $this->content->icons[] = ''; if (file_exists($CFG->dirroot.'/'.$CFG->admin.'/'.$CFG->dbtype)) { -- 2.39.5