MDL-54751 course_modules: New major upgrade point
Also trailing whitespace cleaned.
This commit is contained in:
@@ -2215,7 +2215,7 @@ class file_storage {
|
||||
mkdir($trashpath, $this->dirpermissions, true);
|
||||
}
|
||||
rename($contentfile, $trashfile);
|
||||
|
||||
|
||||
// Fix permissions, only if needed.
|
||||
$currentperms = octdec(substr(decoct(fileperms($trashfile)), -4));
|
||||
if ((int)$this->filepermissions !== $currentperms) {
|
||||
|
||||
@@ -1405,7 +1405,7 @@ class grade_item extends grade_object {
|
||||
// Make it obvious to users if the course module to which this grade item relates, is currently being removed.
|
||||
$deletionpending = course_module_instance_pending_deletion($this->courseid, $this->itemmodule, $this->iteminstance);
|
||||
$deletionnotice = get_string('gradesmoduledeletionprefix', 'grades');
|
||||
|
||||
|
||||
return $deletionpending ? format_string($deletionnotice . ' ' . $this->itemname) : format_string($this->itemname);
|
||||
|
||||
} else if ($this->is_course_item()) {
|
||||
|
||||
+1
-1
@@ -1388,7 +1388,7 @@ function disable_output_buffering() {
|
||||
*/
|
||||
function redirect_if_major_upgrade_required() {
|
||||
global $CFG;
|
||||
$lastmajordbchanges = 2016100501.00;
|
||||
$lastmajordbchanges = 2016110600.00;
|
||||
if (empty($CFG->version) or (float)$CFG->version < $lastmajordbchanges or
|
||||
during_initial_install() or !empty($CFG->adminsetuppending)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user