]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16411 - fix qtype admin page to look in the new place for version numbers.
authortjhunt <tjhunt>
Thu, 18 Sep 2008 02:46:06 +0000 (02:46 +0000)
committertjhunt <tjhunt>
Thu, 18 Sep 2008 02:46:06 +0000 (02:46 +0000)
admin/qtypes.php

index 4ca09341cdcc22f5621e745f3f54ae0bd6c33e3d..de4fa33f2618e53e4b20099623e1a41e35e23f5d 100644 (file)
         }
 
         // 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[] = '<span class="disabled">' . get_string('nodatabase', 'admin') . '</span>';
         }