Proyectos de Subversion Moodle

Rev

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

Rev 129 Rev 273
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 feedback';
37
    {
45
        } else {
-
 
46
            $this->title = get_string('pluginname', 'block_cesa_course_rating');
-
 
47
        }
38
        $this->title = get_string('pluginname', 'block_comments');
48
 
39
        comment::init();
49
        comment::init();
Línea -... Línea 50...
-
 
50
    }
40
    }
51
 
41
 
52
 
42
    function applicable_formats()
53
    function applicable_formats()
43
    {
54
    {