MDL-16411 - fix qtype admin page to look in the new place for version numbers.

This commit is contained in:
tjhunt
2008-09-18 02:46:06 +00:00
parent c715404e6a
commit 80f1f76e50
+3 -3
View File
@@ -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[] = '<span class="disabled">' . get_string('nodatabase', 'admin') . '</span>';
}