. misspell function _twig_convert_encoding -> twig_convert_encoding
authorJEDIBC <bruno@chalopin.fr>
Fri, 9 Dec 2011 09:08:13 +0000 (10:08 +0100)
committerJEDIBC <bruno@chalopin.fr>
Fri, 9 Dec 2011 09:08:13 +0000 (10:08 +0100)
lib/Twig/Extension/Core.php

index 1dbf6be..325f56d 100644 (file)
@@ -582,7 +582,7 @@ function _twig_escape_js_callback($matches)
     }
 
     // \uHHHH
-    $char = _twig_convert_encoding($char, 'UTF-16BE', 'UTF-8');
+    $char = twig_convert_encoding($char, 'UTF-16BE', 'UTF-8');
 
     return '\\u'.substr('0000'.bin2hex($char), -4);
 }