Improve DBReadOnlyError/DBExpectedError page title
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 25 Oct 2015 10:40:44 +0000 (03:40 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 26 Oct 2015 20:45:04 +0000 (13:45 -0700)
Previously it was just "internal error".

Change-Id: I70d81dfc628b462ab525d83f4a20d899da8ca143

includes/db/DatabaseError.php

index e6c285e..78d26ae 100644 (file)
@@ -78,6 +78,10 @@ class DBExpectedError extends DBError {
                return $s;
        }
 
+       function getPageTitle() {
+               return $this->msg( 'databaseerror', 'Database error' );
+       }
+
        /**
         * @return string
         */
@@ -456,4 +460,7 @@ class DBUnexpectedError extends DBError {
  * @ingroup Database
  */
 class DBReadOnlyError extends DBExpectedError {
+       function getPageTitle() {
+               return $this->msg( 'readonly', 'Database is locked' );
+       }
 }