[limb-svn] r5882 - 3.x/trunk/limb/i18n/src/template/tags/i18n

svn at limb-project.com svn at limb-project.com
Mon May 14 01:21:58 MSD 2007


Author: serega
Date: 2007-05-14 01:21:58 +0400 (Mon, 14 May 2007)
New Revision: 5882
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5882

Modified:
   3.x/trunk/limb/i18n/src/template/tags/i18n/current_locale.tag.php
Log:
-- fixed tests for WEB_APP package due to recent WACT refactorings

Modified: 3.x/trunk/limb/i18n/src/template/tags/i18n/current_locale.tag.php
===================================================================
--- 3.x/trunk/limb/i18n/src/template/tags/i18n/current_locale.tag.php	2007-05-13 21:20:48 UTC (rev 5881)
+++ 3.x/trunk/limb/i18n/src/template/tags/i18n/current_locale.tag.php	2007-05-13 21:21:58 UTC (rev 5882)
@@ -15,18 +15,15 @@
 */
 class lmbCurrentLocaleTag extends WactCompilerTag
 {
-  function preGenerate($code)
+  function generateTagContent($code)
   {
-    parent::preGenerate($code);
 
     $name = $this->getAttribute('name');
     $code->writePhp('if ("' . $name. '" == lmbToolkit :: instance()->getLocale()) {');
-  }
 
-  function postGenerate($code)
-  {
+    parent::generateTagContent($code);
+
     $code->writePhp('}');
-    parent::postGenerate($code);
   }
 }
 



More information about the limb-svn mailing list