Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0249828cf92fb80c7cce5332d5e27df7817b0b63 1 parent 8be3ac4
stronk7 authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 course/category.php
View
5 course/category.php
@@ -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".
Please sign in to comment.
Something went wrong with that request. Please try again.