Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-19222 revert diskfree check

  • Loading branch information...
commit b5840c4c7dcf27f6c67dcf19618579aefcb7d02a 1 parent ea4c853
fmarier authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 lib/setup.php
View
15 lib/setup.php
@@ -419,21 +419,6 @@
if (!file_exists($CFG->dataroot .'/sessions')) {
make_upload_directory('sessions');
}
- // Need to disable debugging since disk_free_space()
- // will fail on very large partitions (see MDL-19222)
- $freespace = @disk_free_space($CFG->dataroot.'/sessions');
- if (!($freespace > 2048) and $freespace !== false) {
- echo '<html><body>';
- echo '<table align="center"><tr>';
- echo '<td style="color:#990000; text-align:center; font-size:large; border-width:1px; '.
- ' border-color:#000000; border-style:solid; border-radius: 20px; border-collapse: collapse; '.
- ' -moz-border-radius: 20px; padding: 15px">';
- echo '<p>The session partition is full. It is not possible to login at this time.</p>';
- echo '<p>Please notify server administrator.</p>';
- echo '</td></tr></table>';
- echo '</body></html>';
- die;
- }
ini_set('session.save_path', $CFG->dataroot .'/sessions');
} else { /// Database sessions
Please sign in to comment.
Something went wrong with that request. Please try again.