MDL-20636 Fix 30 TODOs

This commit is contained in:
Tim Hunt
2011-02-24 17:47:51 +00:00
parent d649fb0221
commit 2daffca554
42 changed files with 139 additions and 233 deletions
-16
View File
@@ -838,22 +838,6 @@ class qformat_default {
return NULL;
}
/**
* get directory into which export is going
* @return string file path
*/
function question_get_export_dir() {
// TODO is this still used.
global $USER;
if ($this->canaccessbackupdata) {
$dirname = get_string('exportfilename', 'question');
$path = $this->course->id . '/backupdata/' . $dirname; // backupdata is protected directory
} else {
$path = 'temp/questionexport/' . $USER->id;
}
return $path;
}
/**
* Convert the question text to plain text, so it can safely be displayed
* during import to let the user see roughly what is going on.