MDL-19600 remove remaining traces of docstyles.php.

(Not used since Moodle 1.6.)
Also remove the remaining bits of lang/en_utf8/docs.
This commit is contained in:
tjhunt
2009-06-23 04:39:11 +00:00
parent ebf8c4f179
commit 5af6ec1b2e
13 changed files with 16 additions and 715 deletions
-24
View File
@@ -5023,30 +5023,6 @@ function get_file_packer($mimetype='application/zip') {
return $fp[$mimetype];
}
/**
* Makes an upload directory for a particular module.
*
* @global object
* @param int $courseid The id of the course in question - maps to id field of 'course' table.
* @return string|false Returns full path to directory if successful, false if not
*/
function make_mod_upload_directory($courseid) {
global $CFG;
if (! $moddata = make_upload_directory($courseid .'/'. $CFG->moddata)) {
return false;
}
$strreadme = get_string('readme');
if (file_exists($CFG->dirroot .'/lang/'. $CFG->lang .'/docs/module_files.txt')) {
copy($CFG->dirroot .'/lang/'. $CFG->lang .'/docs/module_files.txt', $moddata .'/'. $strreadme .'.txt');
} else {
copy($CFG->dirroot .'/lang/en_utf8/docs/module_files.txt', $moddata .'/'. $strreadme .'.txt');
}
return $moddata;
}
/**
* Makes a directory for a particular user.
*