Permalink
Browse files

Now restore button is always showed here too !!

Same behaviour than the restore link in main page.
(automatically creates backupdata dir)
Closed bug #741
  • Loading branch information...
1 parent 8be3ac4 commit 0249828cf92fb80c7cce5332d5e27df7817b0b63 stronk7 committed Sep 18, 2003
Showing with 0 additions and 5 deletions.
  1. +0 −5 course/category.php
View
@@ -290,13 +290,8 @@
echo "<a title=\"$strbackup\" href=\"../backup/backup.php?id=$course->id\"><img".
" src=\"$pixpath/t/backup.gif\" height=11 width=11 border=0></a> ";
- //Only showed if "backupdata" dir exists
- if (is_dir("$CFG->dataroot/$course->id/backupdata")) {
echo "<a title=\"$strrestore\" href=\"../files/index.php?id=$course->id&wdir=/backupdata\"><img".
" src=\"$pixpath/t/restore.gif\" height=11 width=11 border=0></a> ";
- } else {
- echo "<img src=\"$CFG->wwwroot/pix/spacer.gif\" height=11 width=11 border=0></a> ";
- }
if ($up) {
echo "<a title=\"$strmoveup\" href=\"category.php?id=$category->id&moveup=$course->id\"><img".

0 comments on commit 0249828

Please sign in to comment.