(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.
This commit is contained in:
parent
a381f93b77
commit
7ec00fa118
3 changed files with 9 additions and 2 deletions
|
|
@ -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' ) );
|
||||
|
|
|
|||
|
|
@ -3167,6 +3167,7 @@ Remember to [[Special:UnlockDB|remove the lock]] after your maintenance is compl
|
|||
'lockfilenotwritable' => 'The database lock file is not writable.
|
||||
To lock or unlock the database, this needs to be writable by the web server.',
|
||||
'databasenotlocked' => 'The database is not locked.',
|
||||
'lockedbyandtime' => '(by $1 on $2 at $3)',
|
||||
|
||||
# Move page
|
||||
'move-page' => 'Move $1',
|
||||
|
|
|
|||
|
|
@ -2167,6 +2167,7 @@ $wgMessageStructure = array(
|
|||
'unlockdbsuccesstext',
|
||||
'lockfilenotwritable',
|
||||
'databasenotlocked',
|
||||
'lockedbyandtime',
|
||||
),
|
||||
'movepage' => array(
|
||||
'move-page',
|
||||
|
|
|
|||
Loading…
Reference in a new issue