[pLog-svn] r4808 - plugins/branches/lifetype-1.1/hostblock/class/view

Oscar Renalias oscar at renalias.net
Thu Feb 22 01:58:53 EST 2007


the constant GLOBALLY_BLOCKED_HOST set to the $blogId parameter is set
to '0', so it means "load all the globally blocked hosts". I don't
understand why we had a specific method for loading hosts blocked from
posting comments globally and not one for hosts blocked from acessing
blogs globally, but it worked so I left it like that.

On 2/22/07, Jon Daley <plogworld at jon.limedaley.com> wrote:
>         Is this right?  It looks like one line is doing global access, and
> the other is doing blog specific.
>
> On Wed, 21 Feb 2007, oscar at devel.lifetype.net wrote:
>
> > Author: oscar
> > Date: 2007-02-21 17:22:27 -0500 (Wed, 21 Feb 2007)
> > New Revision: 4808
> >
> > Modified:
> >   plugins/branches/lifetype-1.1/hostblock/class/view/adminblockedhostsview.class.php
> > Log:
> > Fixed one of the issues reported by Elena in mantis (http://bugs.lifetype.net/view.php?id=1182), now blog-specific blocked hosts do not appear in the "globally blocked hosts" screen.
> >
> >
> > Modified: plugins/branches/lifetype-1.1/hostblock/class/view/adminblockedhostsview.class.php
> > ===================================================================
> > --- plugins/branches/lifetype-1.1/hostblock/class/view/adminblockedhostsview.class.php        2007-02-21 21:55:22 UTC (rev 4807)
> > +++ plugins/branches/lifetype-1.1/hostblock/class/view/adminblockedhostsview.class.php        2007-02-21 22:22:27 UTC (rev 4808)
> > @@ -21,8 +21,8 @@
> >
> >               // get the content that has been filtered by this blog
> >             $blockedHosts = new BlockedHosts();
> > -            $hostsBlockedFromPosting = $blockedHosts->getBlogBlacklist( GLOBALLY_BLOCKED_HOST, BLOCK_COMMENT_POSTING );
> > -            $hostsBlocked = $blockedHosts->getBlogBlacklist( GLOBALLY_BLOCKED_HOST, BLOCK_ACCESS );
> > +            $hostsBlockedFromPosting = $blockedHosts->getGlobalBlacklist( BLOCK_COMMENT_POSTING );
> > +            $hostsBlocked = $blockedHosts->getBlogBlacklist( BLOCK_ACCESS );
> >
> >             $blogBlockedHosts = array_merge( $hostsBlockedFromPosting, $hostsBlocked );
> >
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> All generalizations are bad.
> -- R. H. Grenier
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>


More information about the pLog-svn mailing list