]> git.mjollnir.org Git - moodle.git/commitdiff
Always allow regeneration of templates
authormoodler <moodler>
Fri, 24 Mar 2006 14:49:21 +0000 (14:49 +0000)
committermoodler <moodler>
Fri, 24 Mar 2006 14:49:21 +0000 (14:49 +0000)
mod/data/templates.php

index a466353cda621c45dd836d72937ac92166501139..903a775eedcc37d88b2c11065d09313336ee69ee 100755 (executable)
 
     $data = get_record('data', 'id', $d);    //reload because of possible updates so far!
 
-    if (empty($data->addtemplate) and empty($data->singletemplate) and empty($data->listtemplate) and empty($data->rsstemplate)){
-        echo '<div align="center"><input type="submit" name="allforms" value="'.get_string('autogenallforms','data').'" /></div>';
-    }
+    echo '<div align="center"><input type="submit" name="allforms" value="'.get_string('autogenallforms','data').'" /></div>';
         
     print_simple_box_start('center','80%');
     echo '<table cellpadding="4" cellspacing="0" border="0">';