From 80f1f76e50312d5004bdf098bb2c73f3ea543033 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 18 Sep 2008 02:46:06 +0000 Subject: [PATCH] MDL-16411 - fix qtype admin page to look in the new place for version numbers. --- admin/qtypes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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') . ''; } -- 2.39.5