* Fix edit a block error.

This commit is contained in:
Yagami
2020-09-03 10:48:04 +08:00
parent a3528943e7
commit 8041e2dc32
2 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -264,12 +264,12 @@ class blockModel extends model
* @access public
* @return string
*/
public function getAvailableBlocks($module = '', $dashboard = '', $program = null)
public function getAvailableBlocks($module = '', $dashboard = '', $template = '')
{
$blocks = $this->lang->block->availableBlocks;
if($dashboard == 'program')
{
$blocks = $this->lang->block->modules[$program->template]['index']->availableBlocks;
$blocks = $this->lang->block->modules[$template]['index']->availableBlocks;
}
else
{