Index: trunk/phase3/includes/db/DatabaseError.php |
— | — | @@ -265,13 +265,18 @@ |
266 | 266 | */ |
267 | 267 | function getContentMessage( $html ) { |
268 | 268 | if ( $this->useMessageCache() ) { |
269 | | - $msg = $html ? 'dberrortext' : 'dberrortextcl'; |
270 | | - $ret = wfMsg( $msg, $this->getSQL(), |
271 | | - $this->fname, $this->errno, $this->error ); |
272 | 269 | if ( $html ) { |
273 | | - $ret = htmlspecialchars( $ret ); |
| 270 | + $msg = 'dberrortext'; |
| 271 | + $sql = htmlspecialchars( $this->getSQL() ); |
| 272 | + $fname = htmlspecialchars( $this->fname ); |
| 273 | + $error = htmlspecialchars( $this->error ); |
| 274 | + } else { |
| 275 | + $msg = 'dberrortextcl'; |
| 276 | + $sql = $this->getSQL(); |
| 277 | + $fname = $this->fname; |
| 278 | + $error = $this->error; |
274 | 279 | } |
275 | | - return $ret; |
| 280 | + return wfMsg( $msg, $sql, $fname, $this->errno, $error ); |
276 | 281 | } else { |
277 | 282 | return parent::getContentMessage( $html ); |
278 | 283 | } |