The actual error is always in English, so wrap it in ltr element
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 9 Jan 2011 10:50:42 +0000 (10:50 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 9 Jan 2011 10:50:42 +0000 (10:50 +0000)
includes/db/Database.php

index 78b2358..4d75379 100644 (file)
@@ -2874,6 +2874,8 @@ class DBConnectionError extends DBError {
                        $this->error = $this->db->getProperty( 'mServer' );
                }
 
+               $this->error = Html::element( 'span', array( 'dir' => 'ltr' ), $this->error );
+
                $noconnect = "<p><strong>$sorry</strong><br />$again</p><p><small>$info</small></p>";
                $text = str_replace( '$1', $this->error, $noconnect );