From: tjhunt Date: Thu, 18 Sep 2008 02:46:06 +0000 (+0000) Subject: MDL-16411 - fix qtype admin page to look in the new place for version numbers. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=80f1f76e50312d5004bdf098bb2c73f3ea543033;p=moodle.git MDL-16411 - fix qtype admin page to look in the new place for version numbers. --- diff --git a/admin/qtypes.php b/admin/qtypes.php index 4ca09341cd..de4fa33f26 100644 --- a/admin/qtypes.php +++ b/admin/qtypes.php @@ -146,9 +146,9 @@ } // Question version number. - $versionfield = 'qtype_' . $qtypename . '_version'; - if (isset($CFG->$versionfield)) { - $row[] = $CFG->$versionfield; + $version = get_config('qtype_' . $qtypename, 'version'); + if ($version) { + $row[] = $version; } else { $row[] = '' . get_string('nodatabase', 'admin') . ''; }