From: Aaron Schulz Date: Wed, 6 Jul 2011 17:27:33 +0000 (+0000) Subject: setFileVersion (r91435) was missing default $val X-Git-Tag: 1.31.0-rc.0~29038 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=2526c0a1fde7c761cc08a5e2f5736e759161e28a;p=lhc%2Fweb%2Fwiklou.git setFileVersion (r91435) was missing default $val --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 1de0b653b6..32e99fdcea 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1307,10 +1307,11 @@ class OutputPage { * @return Mixed: previous value */ public function setFileVersion( $file ) { + $val = null; if ( $file instanceof File && $file->exists() ) { $val = array( 'time' => $file->getTimestamp(), 'sha1' => $file->getSha1() ); } - return wfSetVar( $this->mFileVersion, $val ); + return wfSetVar( $this->mFileVersion, $val, true ); } /**