Proyectos de Subversion Moodle

Rev

Rev 274 | Rev 276 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 274 Rev 275
Línea 33... Línea 33...
33
        $this->title = get_string('pluginname', 'block_comments');
33
        $this->title = get_string('pluginname', 'block_comments');
34
    }
34
    }
Línea 35... Línea 35...
35
 
35
 
36
    function specialization()
36
    function specialization()
-
 
37
    {
-
 
38
        global $CFG, $DB;
-
 
39
        if (empty($this->config)) {
-
 
40
            $this->instance->defaultregion = 'side-pre';
-
 
41
            $this->instance->region = 'side-pre';
-
 
42
            $DB->update_record('block_instances', $this->instance);
-
 
43
 
-
 
44
            $this->title = 'Students Comments';
37
    {
45
        } else {
-
 
46
            $this->title = get_string('pluginname', 'block_comments');
38
        $this->title = get_string('pluginname', 'block_comments');
47
        }
39
        comment::init();
48
        comment::init();
Línea 40... Línea -...
40
    }
-
 
41
 
49
    }
42
 
50
 
43
 
51
 
44
    function applicable_formats()
52
    function applicable_formats()