From 81d764580cdc452e69a35764a7017cbd9da09a0a Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 8 Jan 2012 16:08:50 -0800 Subject: [PATCH] Fix undefined `self` in the i18n example. --- examples/i18n/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/i18n/I18n.php b/examples/i18n/I18n.php index 883cc9c..980e649 100644 --- a/examples/i18n/I18n.php +++ b/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(