dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab9bcb
)
Improve DBReadOnlyError/DBExpectedError page title
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 25 Oct 2015 10:40:44 +0000
(
03:40
-0700)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseError.php
b/includes/db/DatabaseError.php
index
e6c285e
..
78d26ae
100644
(file)
--- 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' );
+ }
}