[pmwiki-users] CSS in Wiki Pages: new stylepage.php
Patrick R. Michaud
pmichaud at pobox.com
Tue Aug 29 14:02:21 CDT 2006
On Tue, Aug 29, 2006 at 12:14:34PM -0500, Patrick R. Michaud wrote:
> On Tue, Aug 29, 2006 at 05:50:06PM +0100, Hans wrote:
> > Tuesday, August 29, 2006, 5:08:27 PM, Patrick wrote:
> > > In stylepage.php, change line 88 from
> >
> > > if ($stylepage['=passwd']['read']) {
> >
> > > to
> >
> > > if ($stylepage['=passwd']['read']
> > > && $stylepage['=passwd']['read'] != '@nopass') {
>
> At any rate, it looks fine to me now with the updated caching
> code.
Darnit, that's what I get for writing code in email and not
testing it thoroughly.
The *correct* line should be
if ($stylepage['=passwd']['read']
&& $stylepage['=passwd']['read'][0] != '@nopass') {
because $stylepage['=passwd']['read'] is an *array* of passwords.
Now fixed in the Cookbook as well, and tested. Sorry for the
confusion.
Pm
More information about the pmwiki-users
mailing list