From c5955206b9c0d42f5a992a1126fb89e935b6e6bd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 25 Oct 2015 03:40:44 -0700 Subject: [PATCH] Improve DBReadOnlyError/DBExpectedError page title Previously it was just "internal error". Change-Id: I70d81dfc628b462ab525d83f4a20d899da8ca143 --- includes/db/DatabaseError.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/db/DatabaseError.php b/includes/db/DatabaseError.php index e6c285e7a8..78d26ae94b 100644 --- a/includes/db/DatabaseError.php +++ b/includes/db/DatabaseError.php @@ -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' ); + } } -- 2.20.1