diff options
author | Siebrand Mazeland <siebrand@users.mediawiki.org> | 2011-05-16 23:21:32 +0000 |
---|---|---|
committer | Siebrand Mazeland <siebrand@users.mediawiki.org> | 2011-05-16 23:21:32 +0000 |
commit | 7ec00fa1181ebaa6c9b623149bbb0511eb964db2 (patch) | |
tree | 80368f52afff7442a5cba65a503c48ece804f036 /includes/specials/SpecialLockdb.php | |
parent | a381f93b77f9f69d71a7a522a592b0cc0368a3c8 (diff) | |
download | mediawikicore-7ec00fa1181ebaa6c9b623149bbb0511eb964db2.tar.gz mediawikicore-7ec00fa1181ebaa6c9b623149bbb0511eb964db2.zip |
(bug 29011) Remove hard coded text from Special:LockDb.
Who locked the database and when will be displayed in the content language, as reason, locker and timestamp are saved in $wgReadOnlyFile.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/88278
Diffstat (limited to 'includes/specials/SpecialLockdb.php')
-rw-r--r-- | includes/specials/SpecialLockdb.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/specials/SpecialLockdb.php b/includes/specials/SpecialLockdb.php index f8ab57b25e9b..609b9c543c4e 100644 --- a/includes/specials/SpecialLockdb.php +++ b/includes/specials/SpecialLockdb.php @@ -122,8 +122,13 @@ class SpecialLockdb extends SpecialPage { return; } fwrite( $fp, $this->reason ); - fwrite( $fp, "\n<p>(by " . $wgUser->getName() . " at " . - $wgContLang->timeanddate( wfTimestampNow() ) . ")</p>\n" ); + fwrite( $fp, "\n<p>" . wfMsgExt( + 'lockedbyandtime', + 'content', + $wgUser->getName(), + $wgContLang->date( wfTimestampNow() ), + $wgContLang->time( wfTimestampNow() ) + ) . "</p>\n" ); fclose( $fp ); $wgOut->redirect( $this->getTitle()->getFullURL( 'action=success' ) ); |