'ManualLogEntry' => 'includes/logging/LogEntry.php',
'LogFormatter' => 'includes/logging/LogFormatter.php',
'LegacyLogFormatter' => 'includes/logging/LogFormatter.php',
- 'BlockLogFormatter' => 'includes/logging/LogFormatter.php',
+ 'MoveLogFormatter' => 'includes/logging/LogFormatter.php',
# includes/media
'BitmapHandler' => 'includes/media/Bitmap.php',
* an action, which is a specific kind of event that can exist in that
* log type.
*/
-$wgLogTypes = array( '',
+$wgLogTypes = array(
+ '',
'block',
'protect',
'rights',
* will be listed in the user interface.
*
* Extensions with custom log types may add to this array.
+ *
+ * Since 1.19, if you follow the naming convention log-name-TYPE,
+ * where TYPE is your log type, yoy don't need to use this array.
*/
$wgLogNames = array(
'' => 'all-logs-page',
* top of each log type.
*
* Extensions with custom log types may add to this array.
+ *
+ * Since 1.19, if you follow the naming convention log-description-TYPE,
+ * where TYPE is your log type, yoy don't need to use this array.
*/
$wgLogHeaders = array(
'' => 'alllogstext',
'upload/upload' => 'uploadedimage',
'upload/overwrite' => 'overwroteimage',
'upload/revert' => 'uploadedimage',
- 'move/move' => '1movedto2',
- 'move/move_redir' => '1movedto2_redir',
'import/upload' => 'import-logentry-upload',
'import/interwiki' => 'import-logentry-interwiki',
'merge/merge' => 'pagemerge-logentry',
* The same as above, but here values are names of functions,
* not messages.
* @see LogPage::actionText
+ * @see LogFormatter
*/
-$wgLogActionsHandlers = array();
+$wgLogActionsHandlers = array(
+ // move, move_redir
+ 'move/*' => 'MoveLogFormatter',
+);
/**
* Maintain a log of newusers at Log/newusers?
// Nonstatic->
- /**
- * @var LogEntry
- */
+ /// @var LogEntry
protected $entry;
/// Whether to output user tool links
* This class formats Block log entries.
* @since 1.19
*/
-class BlockLogFormatter extends LogFormatter {
+class MoveLogFormatter extends LogFormatter {
protected function getMessageKey() {
$key = parent::getMessageKey();
$params = $this->getMessageParameters();
'sqlite-has-fts' => '$1 with full-text search support',
'sqlite-no-fts' => '$1 without full-text search support',
+# New logging system
+'logentry-move-move' => '$1 {{GENDER:$2|moved}} page $3 to $4',
+'logentry-move-move-noredirect' => '$1 {{GENDER:$2|moved}} page $3 to $4 without leaving a redirect',
+'logentry-move-move_redir' => '$1 {{GENDER:$2|moved}} page $3 to $4 over redirect',
+'logentry-move-move_redir-noredirect' => '$1 {{GENDER:$2|moved}} page $3 to $4 over a redirect without leaving a redirect',
+
);
'unwatch' => array(
'confirm-unwatch-button',
),
+ 'logging' => array(
+ 'logentry-move-move',
+ 'logentry-move-move-noredirect',
+ 'logentry-move-move_redir',
+ 'logentry-move-move_redir-noredirect',
+ ),
);
/** Comments for each block */
'db-error-messages' => 'Database error messages',
'html-forms' => 'HTML forms',
'sqlite' => 'SQLite database support',
+ 'logging' => 'New logging system',
);