Thomas Dalton | 7 May 18:29

Re: Is there a way to control edit rights for talk pages differently from content pages?

On 07/05/2008, Thomas Dalton <thomas.dalton@...> wrote:
> 2008/5/7 Daniel Barrett <danb@...>:
>
> > How about a foreach loop through the array of namespaces, then change the exceptions afterward?
>
>
> No point - the exceptions list would be just as long as doing it the
>  other way around. There's a talk namespace for every non-talk one.

As always, the idea comes to me just as I click send... I think
non-talk namespaces generally have even IDs and talk namespaces odd
ones. If that really is the case, then you can do a foreach loop and
check if the id is even or odd (using "foo % 2 == 0" or whatever it is
in php) and set the protection accordingly.

Gmane