Proyectos de Subversion Moodle

Rev

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

Rev 279 Rev 280
Línea 81... Línea 81...
81
            }
81
            }
82
        }
82
        }
83
        return $this->blockExists;
83
        return $this->blockExists;
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    public function addBlocksIfNotExist($page = 'courses')
86
    public function addBlocksIfNotExist($regionName)
87
    {
87
    {
88
        if (!$this->blockExists) {
88
        if (!$this->blockExists) {
89
            foreach ($this->blockNames as $blockName) {
89
            foreach ($this->blockNames as $blockName) {
90
                $this->blockManager->add_block($blockName, $this->regionName, 1, true);
90
                $this->blockManager->add_block($blockName, $this->regionName, 1, true);