From: Andrew Garrett Date: Mon, 16 Nov 2009 16:21:11 +0000 (+0000) Subject: Fix incompatibility with PHP<5.2 X-Git-Tag: 1.31.0-rc.0~38785 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=45d31742e27d577ebb5210919aa0d4dd40d11e5e;p=lhc%2Fweb%2Fwiklou.git Fix incompatibility with PHP<5.2 --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index dc2d0a5724..ed17476600 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -364,7 +364,7 @@ class HTMLForm { $html = ''; $html .= Html::hidden( 'wpEditToken', $wgUser->editToken(), array( 'id' => 'wpEditToken' ) ) . "\n"; - $html .= Html::hidden( 'title', $this->getTitle() ) . "\n"; + $html .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; foreach( $this->mHiddenFields as $name => $value ){ $html .= Html::hidden( $name, $value ) . "\n"; @@ -1401,4 +1401,4 @@ class HTMLEditTools extends HTMLFormField { array( 'parse', 'content' ) ) . "\n"; } -} \ No newline at end of file +}