-1
The lines below repeat several times:
define("NS_CIRCULAR", 3068);
define("NS_CIRCULAR_TALK", 3069);
$wgExtraNamespaces[NS_CIRCULAR] = "Circular";
$wgExtraNamespaces[NS_CIRCULAR_TALK] = "Circular_talk";
$smwgNamespacesWithSemanticLinks[NS_CIRCULAR] = true;
define("NS_DESPACHO", 3070);
define("NS_DESPACHO_TALK", 3071);
$wgExtraNamespaces[NS_DESPACHO] = "Despacho";
$wgExtraNamespaces[NS_DESPACHO_TALK] = "Despacho_talk";
$smwgNamespacesWithSemanticLinks[NS_DESPACHO] = true;
To save lines, you can make an array for "define", one for "$wgExtraNamespaces" and one for "$smwgNamespacesWithSemanticLinks" without breaking php?
Ah, even with the class name Enum one could put class NS { its constants }, would call them statically, would only be more organized by the fact of being a class, but I think in the context of use would be similar to the define.
– Talles