Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-8605 eh, forgot to undo some testing code before commit, sorry

  • Loading branch information...
commit 4aec47adba7ffa84926284334ce927f95551887e 1 parent f38de13
skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/db/upgrade.php
View
2  lib/db/upgrade.php
@@ -700,7 +700,6 @@ function xmldb_main_upgrade($oldversion=0) {
if ($result && $oldversion < 2007021532) {
// Get list of users by browsing moodledata/user
$oldusersdir = $CFG->dataroot . '/users';
- $readmefilename = $oldusersdir . '/README.txt';
$folders = get_directory_list($oldusersdir, '', false, true, false);
foreach ($folders as $userid) {
@@ -730,6 +729,7 @@ function xmldb_main_upgrade($oldversion=0) {
}
// Leave a README in old users directory
+ $readmefilename = $oldusersdir . '/README.txt';
if ($handle = fopen($readmefilename, 'w+b')) {
if (!fwrite($handle, get_string('olduserdirectory'))) {
// Could not write to the readme file. No cause for huge concern
Please sign in to comment.
Something went wrong with that request. Please try again.