add clear
This commit is contained in:
@@ -60,20 +60,21 @@ class PublicTemplate extends Miniprogarampage
|
||||
*/
|
||||
public function replaceKeyword($name, $context, $color = '')
|
||||
{
|
||||
$this->keywords['keyword' . $name] = ['value' => $context, 'color' => $color];
|
||||
$this->keywords[$name] = ['value' => $context, 'color' => $color];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param $context
|
||||
* @param null $color
|
||||
*/
|
||||
public function addKeyword($context, $color = null)
|
||||
public function addKeyword($name, $context, $color = null)
|
||||
{
|
||||
if (empty($color)) {
|
||||
$color = '#000';
|
||||
}
|
||||
$this->keywords['keyword' . count($this->keywords)] = [
|
||||
$this->keywords[$name] = [
|
||||
'value' => $context,
|
||||
'color' => $color
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user