Skip to content

Commit

Permalink
Merge pull request #193 from stfalcon/fix-using-request-service
Browse files Browse the repository at this point in the history
Change getting request service
  • Loading branch information
LogansUA committed Apr 18, 2016
2 parents 405a7f6 + 10454b5 commit 1a710d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/Extension/StfalconTinymceExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function tinymceInit($options = array())
// If the language is not set in the config...
if (!isset($config['language']) || empty($config['language'])) {
// get it from the request
$config['language'] = $this->container->get('request_stack')->getCurrentRequest()->getLocale();
$config['language'] = $this->container->get('request')->getLocale();
}

$config['language'] = LocaleHelper::getLanguage($config['language']);
Expand Down

0 comments on commit 1a710d0

Please sign in to comment.