diff options
author | wei <> | 2006-01-29 04:59:32 +0000 |
---|---|---|
committer | wei <> | 2006-01-29 04:59:32 +0000 |
commit | 397f1f02d104a08321e9500aa65e83e5b3d22c4e (patch) | |
tree | 5109066e57064f973978fabbd40d6fab2f844df0 /framework/Web/UI/TTemplateManager.php | |
parent | c89523c4ab1bda766d6b0b4b4d2ade3513046400 (diff) |
Allow TPage constructor to alter application configuration.
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 3c522897..312b821d 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -355,7 +355,8 @@ class TTemplate extends TComponent implements ITemplate $component->$setter($this->getApplication()->getParameters()->itemAt($value[1]));
break;
case self::CONFIG_LOCALIZATION:
- $component->$setter(localize($value[1]));
+ Prado::using('System.I18N.Translation');
+ $component->$setter(localize(trim($value[1])));
break;
default: // an error if reaching here
break;
|