Skip to content

Commit

Permalink
prefixed Twig_Error_Runtime with backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Nov 9, 2015
1 parent 098f8b2 commit d8633fd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Twig/Extension/FMElfinderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,15 @@ public function tinymce4($instance = 'default', $parameters = array('width' => 9

/**
* @param string $instance
* @param array $parameters
*
* @throws \Twig_Error_Runtime
*
* @param string $selector
* @param array $parameters
* @return mixed
* @throws \Twig_Error_Runtime
*/
public function summernote($instance = 'default', $selector = '.summenote', $parameters = array('width' => 900, 'height' => 450, 'title' => 'elFinder 2.0'))
{
if (!is_string($instance)) {
throw new Twig_Error_Runtime('The function can be applied to strings only.');
throw new \Twig_Error_Runtime('The function can be applied to strings only.');
}

return $this->twig->render('FMElfinderBundle:Elfinder/helper:_summernote.html.twig',
Expand Down

0 comments on commit d8633fd

Please sign in to comment.