I've installed the Wikipedia software on my
machine, so I can start
hacking at it. It seems to be working OK, except that I get huge
numbers of PHP warning messages at the top of each page. I can get
rid of them by turning down the level of PHP warnings, but this is a
really bad idea from a bug-prevention point of view.
I think we all work with "standard settings", and there are no warnings
showing up, just like the Bomis server uses standard and doesn't show
anything like that, either. Me, I'm still surprised that it's running at all
;)
<snip>
Here, $wikiTalk,
$wikiNamespaceBackground["talk"], $wikiUser and
$wikiWikipedia are all undefined. I've no idea how to clean this
up, because I don't understand what it's supposed to look like.
Why are some of the indices variables and other constants?
In particular, what is the intended distinction between
$wikiNamespaceBackground["talk"] and $wikiNamespaceBackground[$wikiTalk]?
What should be done with this code?
The reason (without looking at the code right now) is probably the missing
"global" statement at the beginning of the function.
The purpose of the indices being variables is that the German wikipedia, for
example, uses "/Diskussion" instead of "/Talk", and will get a
"Diskussion:"
namespace instead of "Talk:". The reason for the mix with constants is that
we're too lazy to convert them all to variables...
Magnus