]> git.mjollnir.org Git - moodle.git/commitdiff
Now restore button is always showed here too !!
authorstronk7 <stronk7>
Thu, 18 Sep 2003 21:58:04 +0000 (21:58 +0000)
committerstronk7 <stronk7>
Thu, 18 Sep 2003 21:58:04 +0000 (21:58 +0000)
Same behaviour than the restore link in main page.
(automatically creates backupdata dir)
Closed bug #741

course/category.php

index de4e2ec5a718c0f6235d24e706ebf4ae5658967c..ea0d6636889f837f77d4f6b486c51582fd4e777a 100644 (file)
                     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".