Skip to content

Commit

Permalink
MDL-16411 - fix qtype admin page to look in the new place for version…
Browse files Browse the repository at this point in the history
… numbers.
  • Loading branch information
tjhunt committed Sep 18, 2008
1 parent c715404 commit 80f1f76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/qtypes.php
Expand Up @@ -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>';
}
Expand Down

0 comments on commit 80f1f76

Please sign in to comment.