Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed wrong class name
  • Loading branch information
mudrd8mz committed May 16, 2011
1 parent 99a8251 commit 383f6f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backup/util/helper/backup_general_helper.class.php
Expand Up @@ -238,14 +238,13 @@ public static function backup_is_samesite($info) {
public static function detect_backup_format($tempdir) {
global $CFG;
require_once($CFG->dirroot . '/backup/util/helper/convert_helper.class.php');
require_once($CFG->dirroot . '/backup/util/factories/convert_factory.class.php');

if (convert_helper::detect_moodle2_format($tempdir)) {
return backup::FORMAT_MOODLE;
}

// see if a converter can identify the format
$converters = convert_factory::available_converters();
$converters = convert_helper::available_converters();
foreach ($converters as $name) {
$classname = "{$name}_converter";
if (!class_exists($classname)) {
Expand Down

0 comments on commit 383f6f6

Please sign in to comment.