r94006 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94005‎ | r94006 | r94007 >
Date:08:22, 6 August 2011
Author:catrope
Status:deferred
Tags:
Comment:
RL2: Add logging stuff to the Gadgets setup file
Modified paths:
  • /branches/RL2/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/Gadgets.php
@@ -103,3 +103,15 @@
104104
105105 $wgAPIListModules['gadgetcategories'] = 'ApiQueryGadgetCategories';
106106 $wgAPIListModules['gadgets'] = 'ApiQueryGadgets';
 107+
 108+$wgLogTypes[] = 'gadgetman';
 109+$wgLogNames['gadgetman'] = 'gadgets-gadgetmanlog-page'; // TODO define
 110+$wgLogHeaders['gadgetman'] = 'gadgets-gadgetmanlog-text'; // TODO define
 111+$wgLogActions['gadgetman/create'] = 'gadgets-gadgetmanlog-createentry';
 112+$wgLogActions['gadgetman/modify'] = 'gadgets-gadgetmanlog-modifyentry';
 113+$wgLogActions['gadgetman/delete'] = 'gadgets-gadgetmanlog-deleteentry';
 114+// TODO add as needed
 115+// TODO: create and modify will not have a summary, figure out how well that fares. User creation also doesn't have one
 116+#$wgLogActionsHandlers['gadgetman/create'] = '...';
 117+#$wgLogActionsHandlers['gadgetman/modify'] = '...';
 118+#$wgLogActionsHandlers['gadgetman/delete'] = '...';

Status & tagging log