|
Re: bug in Template Editor [message #14001 is a reply to message #13993] |
Mon, 03 November 2003 14:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
This sounds like a bug in the older releases. In 2.6.0 snapshot it works fine. The other possibility that in the language you are using the text is infact the same.
With english localization in latest CVS I cannot replicate the bug.
FUDforum Core Developer
|
|
|
Re: bug in Template Editor [message #14034 is a reply to message #14001] |
Tue, 04 November 2003 07:21 |
|
gladiator
Messages: 61 Registered: June 2002 Location: Beijing
Karma: 0
|
Member |
|
|
Ilia wrote on Mon, 03 November 2003 22:35 | This sounds like a bug in the older releases. In 2.6.0 snapshot it works fine. The other possibility that in the language you are using the text is infact the same.
With english localization in latest CVS I cannot replicate the bug.
|
I use 2.60rc2, upgraded from 2.5.x, and I use chinese localization.
sections in pre_reg.tmpl is:
... ...
{SECTION: forum_rules_13}
{MSG: forum_rules_13}
{SECTION: END}
{SECTION: forum_rules}
{MSG: forum_rules}
{SECTION: END}
... ...
I noticed that in tmpllist.php, function fetch_section(),
you use
$p = strpos($data, '{SECTION: '.$section);
to match the sections.
in the above example, seems it doesn't matter the value of $section is 'forum_rules' or 'forum_rules_13', it will always match the first section(which in this case is section forum_rules_13).
could this be a bug?
[Updated on: Tue, 04 November 2003 07:21] Report message to a moderator
|
|
|
|
|