Who locked the database and when will be displayed in the content language, as reason, locker and timestamp are saved in $wgReadOnlyFile.
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' ) );
'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',
'unlockdbsuccesstext',
'lockfilenotwritable',
'databasenotlocked',
+ 'lockedbyandtime',
),
'movepage' => array(
'move-page',