* code for task #8496.

This commit is contained in:
z
2020-11-25 16:15:58 +08:00
parent 880e182c06
commit f161d4133b
+6 -1
View File
@@ -768,6 +768,7 @@ class blockModel extends model
list($moduleName, $blockKey) = explode('|', $block);
if(empty($moduleName))
{
if(isset($this->lang->block->$blockKey)) $blockPairs[$block] = $this->lang->block->$blockKey;
if($blockKey == 'html') $blockPairs[$block] = 'HTML';
if($blockKey == 'flowchart') $blockPairs[$block] = $this->lang->block->lblFlowchart;
if($blockKey == 'dynamic') $blockPairs[$block] = $this->lang->block->dynamic;
@@ -778,7 +779,11 @@ class blockModel extends model
$blockName = $blockKey;
if(isset($this->lang->block->modules[$moduleName]->availableBlocks->$blockKey)) $blockName = $this->lang->block->modules[$moduleName]->availableBlocks->$blockKey;
if(isset($this->lang->block->availableBlocks->$blockKey)) $blockName = $this->lang->block->availableBlocks->$blockKey;
$blockPairs[$block] = "{$this->lang->block->moduleList[$moduleName]}|{$blockName}";
if(isset($this->lang->block->modules['scrum']['index']->availableBlocks->$blockKey)) $blockName = $this->lang->block->modules['scrum']['index']->availableBlocks->$blockKey;
if(isset($this->lang->block->modules['waterfall']['index']->availableBlocks->$blockKey)) $blockName = $this->lang->block->modules['waterfall']['index']->availableBlocks->$blockKey;
$blockPairs[$block] = isset($this->lang->block->moduleList[$moduleName]) ? "{$this->lang->block->moduleList[$moduleName]}|" : '';
$blockPairs[$block] .= $blockName;
}
}