MDL-10805 custom check was causing error on installation because dmllib functions are not available yet.

This commit is contained in:
jamiesensei
2007-08-12 15:07:08 +00:00
parent b36e36aa05
commit fd3772dc94
+3 -2
View File
@@ -77,8 +77,9 @@ function question_remove_rqp_qtype_config_string() {
*/
function question_random_check($result){
global $CFG;
if ($CFG->version >= 2007081000){
return null;//no test after upgrade seperates question cats into contexts.
if (!empty($CFG->running_installer) //no test on first installation, no questions to test yet
|| $CFG->version >= 2007081000){//no test after upgrade seperates question cats into contexts.
return null;
}
if (!$toupdate = question_cwqpfs_to_update()){
$result->setStatus(true);//pass test