Thread:Project:Support desk/Method of Declaring Content Namespaces in one array doesn't work

The page https://www.mediawiki.org/wiki/Manual:$wgContentNamespaces for declaring content namespaces indicates that the namespaces should be declared in a single array. This generates an error. It seems to work when each content namespace is declared with a discrete statement:

$wgContentNamespaces[] = NS_VOL_TALK; $wgContentNamespaces[] = NS_STRNG; $wgContentNamespaces[] = NS_STAFF;

I'm a noob so chances are I'm doing something wrong. I am hoping that someone can confirm that the way I'm declaring content namespaces is not going to cause problems.

I'm using MW 1.25.1. Apache 24, updated a couple weeks ago, php56 updated recently.

Thanks,

Loonybomber (talk) 05:34, 5 June 2015 (UTC)