* Fix block code style.
This commit is contained in:
@@ -64,7 +64,8 @@ class block extends control
|
||||
}
|
||||
elseif(isset($this->lang->block->moduleList[$module]))
|
||||
{
|
||||
$module == 'program' ? $this->get->set('mode', 'getprogramlist') : $this->get->set('mode', 'getblocklist');
|
||||
$this->get->set('mode', 'getblocklist');
|
||||
if($module == 'program') $this->get->set('dashboard', 'program');
|
||||
$this->view->blocks = $this->fetch('block', 'main', "module=$module&id=$id");
|
||||
$this->view->module = $module;
|
||||
}
|
||||
@@ -410,10 +411,10 @@ class block extends control
|
||||
|
||||
$mode = strtolower($this->get->mode);
|
||||
|
||||
if($mode == 'getblocklist' || $mode == 'getprogramlist')
|
||||
if($mode == 'getblocklist')
|
||||
{
|
||||
$type = $mode == 'getblocklist' ? '' : 'program';
|
||||
$blocks = $this->block->getAvailableBlocks($module, $type);
|
||||
$dashboard = $this->get->dashboard;
|
||||
$blocks = $this->block->getAvailableBlocks($module, $dashboard);
|
||||
if(!$this->selfCall)
|
||||
{
|
||||
echo $blocks;
|
||||
|
||||
Reference in New Issue
Block a user