From d2db892076cb933dd728251566074dcdb12e1a76 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 16 Apr 2012 13:11:46 +0800 Subject: [PATCH] MDL-32443 queupgradehelper cli: fix path & whitespace --- admin/tool/qeupgradehelper/cli/convert.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/tool/qeupgradehelper/cli/convert.php b/admin/tool/qeupgradehelper/cli/convert.php index 00996378568..779442e80f9 100644 --- a/admin/tool/qeupgradehelper/cli/convert.php +++ b/admin/tool/qeupgradehelper/cli/convert.php @@ -71,7 +71,7 @@ if (!tool_qeupgradehelper_is_upgraded()) { return; } -require_once(dirname(__FILE__) . '/afterupgradelib.php'); +require_once(dirname(dirname(__FILE__)) . '/afterupgradelib.php'); $starttime = time(); @@ -107,7 +107,7 @@ while ((!$stoptime || (time() < $stoptime)) && (!$options['countlimit'] || ($cou mtrace('qeupgradehelper: No more quizzes to process.'); break; // No more to do. } - + $quizid = $quiz->id; } $quizsummary = tool_qeupgradehelper_get_quiz($quizid); @@ -120,7 +120,7 @@ while ((!$stoptime || (time() < $stoptime)) && (!$options['countlimit'] || ($cou } else { mtrace('quiz ' . $quizid . ' not found or already upgraded.'); } - + $count++; }