Explorar el Código

Fix undefined `self` in the i18n example.

Justin Hileman hace 14 años
padre
commit
81d764580c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/i18n/I18n.php

+ 1 - 1
examples/i18n/I18n.php

@@ -6,7 +6,7 @@ class I18n extends Mustache {
     public $name = 'Bob';
 
     // Add a {{#__}} lambda for i18n
-    public $__ = array(self, '__trans');
+    public $__ = array(__CLASS__, '__trans');
 
     // A *very* small i18n dictionary :)
     private $dictionary = array(