Proyectos de Subversion Moodle

Rev

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

Rev 275 Rev 276
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';
-
 
45
        } else {
37
    {
46
            $this->title = get_string('pluginname', 'block_comments');
-
 
47
        }
38
        $this->title = get_string('pluginname', 'block_comments');
48
        comment::init();
39
        comment::init();
Línea 49... Línea 40...
49
    }
40
    }