Merge pull request #204 from Mibew/styles_fix

Styles fix
This commit is contained in:
Fedor A. Fetisov 2017-06-15 19:34:14 +03:00 committed by GitHub
commit 8b6d411d58
2 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,7 @@ class ButtonCodeController extends AbstractController
// Set generator-specific options
$button_generator->setOption('image', $image);
$button_generator->setOption('invitation_style', $invitation_style);
} else {
// Make sure locale exists
if (!$lang || !in_array($lang, $locales_list)) {

View File

@ -36,7 +36,7 @@ abstract class AbstractController extends BaseAbstractController
protected function getStyle()
{
if (is_null($this->style)) {
$this->style = $this->prepareStyle(new ChatStyle(ChatStyle::getDefaultStyle()));
$this->style = $this->prepareStyle(new ChatStyle(ChatStyle::getCurrentStyle()));
}
return $this->style;