[geeklog-devel] About COM_startBlock in GL-1.4.2

geeklog at mystral-kk.net geeklog at mystral-kk.net
Tue Sep 11 09:13:22 EDT 2007


Blaine wrote:

>> Lastly, I can't understand the comment on line #1368
>> [quote]
>>         for ($i=2; $i <= 5; $i++) {   // there can't be more then 5
>> blocks
>> of the same name
>> [/quote]
>> Why "not more than 5"?  Maybe a bigger number is better.  Or am I
>> missing
>> something badly?
>>
> This code is only executed on the rare case of you naming blocks with
> the same title - why would you have more then 5 blocks with the very
> same title?

OK, I understand your point. Thanks, Blaine.  Then, what about $title
parameter of COM_startBlock?

> BTW, looking into COM_startBlock function, My friend Phize found a
> potential bug.  In this function, the $title parameter is used as a block
> ID.  If $title is made up of multibyte characters, it will cause an HTML
> error, for id property of HTML doesn't allow a value of multibyte
> characters.
-- 
 mystral-kk (Kenji ITO)
 "Every cloud has a silver lining."





More information about the geeklog-devel mailing list