]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15402: trivial stuff into the repository lib
authorjerome <jerome>
Wed, 22 Oct 2008 05:49:15 +0000 (05:49 +0000)
committerjerome <jerome>
Wed, 22 Oct 2008 05:49:15 +0000 (05:49 +0000)
repository/lib.php

index bf4fa05f0dc75507f4f7d34398dadff3a17d8c96..595082a405195f96de06744559f499671e198061 100644 (file)
@@ -1036,7 +1036,7 @@ function repository_check_context($ctx_id) {
 
 /**
  * Return all types that you a user can create/edit and which are also visible
- * Note: Mostly used in order to know if at least one editable type has been set
+ * Note: Mostly used in order to know if at least one editable type can be set
  * @param object $context the context for which we want the editable types
  * @return array types
  */
@@ -1384,6 +1384,7 @@ final class repository_type_form extends moodleform {
         $mform->addElement('hidden', 'edit',  ($this->instance) ? $this->instance->get_typename() : 0);
         $mform->addElement('hidden', 'new',   $this->plugin);
         $mform->addElement('hidden', 'plugin', $this->plugin);
+
         // let the plugin add its specific fields
         if (!$this->instance) {
                 $result = repository_static_function($this->plugin, 'type_config_form', $mform);