Browse files

merge from 18 STABLE MDL-8809

  • Loading branch information...
1 parent a7b696e commit 38a2212c8f0d2f5315fc08b9b54b8927ae75a470 pichetp committed Mar 8, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/datasetdependent/datasetitems_form.php
View
4 question/type/datasetdependent/datasetitems_form.php
@@ -68,7 +68,7 @@ function definition() {
$this->noofitems = 0;
}
//------------------------------------------------------------------------------------------------------------------------------
- $mform->addElement('submit', 'updatedatasets', get_string('Update the datasets parameters', 'qtype_datasetdependent'));
+ $mform->addElement('submit', 'updatedatasets', get_string('updatedatasetparam', 'qtype_datasetdependent'));
$mform->addElement('header', 'additemhdr', get_string('itemtoadd', 'qtype_datasetdependent'));
$idx = 1;
$j = (($this->noofitems) * count($this->datasetdefs))+1;
@@ -202,7 +202,7 @@ function set_data($question){
function validation($data){
$errors = array();
- if (isset($data['backtoquiz']) && ($this->noofitems===0)){
+ if (isset($data['backtoquiz']) && ($this->noofitems==0)){
$errors['addbutton'] = get_string('youmustaddatleastoneitem', 'qtype_datasetdependent');
}
return $errors;

0 comments on commit 38a2212

Please sign in to comment.