* (bug 26861) avoid warning in OutputPage::addVaryHeader when $options param is null
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Jan 2011 16:59:01 +0000 (16:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Jan 2011 16:59:01 +0000 (16:59 +0000)
commitcb3d7eb63d291a649c68ca3f65e11c36b5569d0d
tree17edc91820d345082e5244caae521d027d3222ea
parent8a6475bd704fd57c2207b20e1588134a742e3bb6
* (bug 26861) avoid warning in OutputPage::addVaryHeader when $options param is null

This should coerce nulls to empty arrays to make them play a little nicer.

Also added a doc comment that the format and contents of the $option parameter need to be described in some way; judging by the below getXVO() function they're used to produce the X-Vary-Options header along with the vary cookie settings, but offhand wouldn't know what acceptable options are or how to look them up (X-Vary-Options is something we made up as an extension for our patched Squid servers, so there's no public standard like the HTTP RFCs to look it up in.)
includes/OutputPage.php