Index: trunk/extensions/SignDocument/SignDocument.php |
— | — | @@ -23,8 +23,6 @@ |
24 | 24 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
25 | 25 | */ |
26 | 26 | |
27 | | -$wgExtensionFunctions[] = 'wfCreateSignatureLog'; |
28 | | - |
29 | 27 | $wgExtensionCredits['specialpage'][] = array( |
30 | 28 | 'path' => __FILE__, |
31 | 29 | 'name' => 'SignDocument', |
— | — | @@ -52,21 +50,12 @@ |
53 | 51 | $wgGroupPermissions['*']['createsigndocument'] = false; |
54 | 52 | $wgGroupPermissions['sigadmin']['createsigndocument'] = true; |
55 | 53 | |
56 | | -/** |
57 | | - * Create the Signature log. |
58 | | - */ |
59 | | -function wfCreateSignatureLog() { |
60 | | - |
| 54 | +# Add a new log type |
| 55 | +$wgLogTypes[] = 'signature'; |
| 56 | +$wgLogNames['signature'] = 'signaturelogpage'; |
| 57 | +$wgLogHeaders['signature'] = 'signaturelogpagetext'; |
| 58 | +$wgLogActions['signature/sign'] = 'signaturelogentry'; |
61 | 59 | |
62 | | - # Add a new log type |
63 | | - global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions; |
64 | | - |
65 | | - $wgLogTypes[] = 'signature'; |
66 | | - $wgLogNames['signature'] = 'signaturelogpage'; |
67 | | - $wgLogHeaders['signature'] = 'signaturelogpagetext'; |
68 | | - $wgLogActions['signature/sign'] = 'signaturelogentry'; |
69 | | -} |
70 | | - |
71 | 60 | /** |
72 | 61 | * Logs the addition of a signature to a document. If it's an anonymous user, |
73 | 62 | * it will add it to the logging table but the entry won't display on Special:Log. |