fixed issue MDL-14531

added an option to switch autonumbering on or off
This commit is contained in:
agrabs 2008-04-30 22:17:04 +00:00
parent 914061abe1
commit efc5916754
22 changed files with 74 additions and 52 deletions

View file

@ -146,7 +146,14 @@
$itemclass = 'feedback_item_'.$item->typ;
//get the instance of the item-class
$itemobj = new $itemclass();
$itemnr = $itemobj->print_analysed($item, $itemnr, $mygroupid);
$itemnr++;
if($feedback->autonumbering) {
$printnr = $itemnr.'.';
} else {
$printnr = '';
}
$itemobj->print_analysed($item, $printnr, $mygroupid);
// $itemnr = $itemobj->print_analysed($item, $itemnr, $mygroupid);
echo '</table>';
}
}else {