mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
commit
8b6d411d58
@ -127,6 +127,7 @@ class ButtonCodeController extends AbstractController
|
|||||||
|
|
||||||
// Set generator-specific options
|
// Set generator-specific options
|
||||||
$button_generator->setOption('image', $image);
|
$button_generator->setOption('image', $image);
|
||||||
|
$button_generator->setOption('invitation_style', $invitation_style);
|
||||||
} else {
|
} else {
|
||||||
// Make sure locale exists
|
// Make sure locale exists
|
||||||
if (!$lang || !in_array($lang, $locales_list)) {
|
if (!$lang || !in_array($lang, $locales_list)) {
|
||||||
|
@ -36,7 +36,7 @@ abstract class AbstractController extends BaseAbstractController
|
|||||||
protected function getStyle()
|
protected function getStyle()
|
||||||
{
|
{
|
||||||
if (is_null($this->style)) {
|
if (is_null($this->style)) {
|
||||||
$this->style = $this->prepareStyle(new ChatStyle(ChatStyle::getDefaultStyle()));
|
$this->style = $this->prepareStyle(new ChatStyle(ChatStyle::getCurrentStyle()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->style;
|
return $this->style;
|
||||||
|
Loading…
Reference in New Issue
Block a user