Current CVS: syntax error: unrecognized tag: $site->data.name
| From: | Mark Rogers | Date: | Tue, 11 Feb 2003 18:51:25 +0000 |
| Subject: | Current CVS: syntax error: unrecognized tag: $site->data.name | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7647@lists.php.net to get a copy of this message | ||
The current CVS fails to parse something which was fine in 2.4.1. The line
of template code is (wrapped for posting, one line in template):
Welcome to <b style="color:#000099">
{$site->data.name}
{if $user->profile.name}, {$user->profile.name}</b>
{/if}
It fails with (wrapped for posting):
Fatal error: Smarty: [in default.tpl line 39]:
syntax error: unrecognized tag: $site->data.name
(Smarty_Compiler.class.php, line 381)
in /var/www/lib/smarty/Smarty_Compiler.class.php
on line 1857
Line 39 of default.tpl is, of-course, the template code I have quoted above.
$site is an object which contains a data array, which does contain a name
index (the name of the site, surprisingly enough). With 2.4.1 the code
correctly shows:
Welcome to Some Site Name
(as tested when $user->profile.name is empty).
Mark Rogers,
Quarella (More Solutions) Ltd
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003