2009/3/19 Linly <[email protected]>:
>
>
>
> On 3月19日, 下午8時05分, The Editor <[email protected]> wrote:
>> I was aware that none of the variables are really set to take UTF
>> pagenames at present (system, data or info), though I will likely try
>> to rework that code if I get some time before going 3.xx. It may be
>> easy or hard, I don't really know. More than likely easy...
>>
>> Here's a fix for the include bug that will be in the next release.
>> functions.php, ~lines 153-155
>>
>> if (isset($args['page'])) $page = $args['page'];
>> else $page = $args[''][0];
>> $page = BOLTfilter(BOLTpageshortcuts($args[''][0]), 'page');
>
> Oops, I can't get it working. :(
My mistake, that line should be
$page = BOLTfilter(BOLTpageshortcuts($page), 'page');
> * [if equal {p1} 一] -> Failed
This one was a bit trickier to fix, as I didn't want to lose case
sensitivity. But this seems to work:.
ffunction BOLTCequal($args='') {
## CHECKS TO SEE IF TWO VALUES ARE EQUAL. IF PARAMETER CASE=FALSE,
RETURNS CASE INSENSITIVE RESULT. IF EITHER VALUES IS NULL, RETURNS
FALSE
if (!isset($args[''][1])) return false;
$test0 = BOLTurl2utf(trim($args[''][0]));
$test1 = BOLTurl2utf(trim($args[''][1]));
if ($args['case'] == 'false') return (strtolower($test0) ==
strtolower($test1));
return ($test0 == $test1);
}
I'll do my best to fix them as fast as you find them. Though the
refactoring of the vars issues will have to wait until I can get a
little extra time to really analyze it more carefully. Thanks for all
your help!
Cheers
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---