Index: trunk/extensions/LogEntry/LogEntry.page.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | */ |
9 | 9 | |
10 | 10 | // LogEntry special page |
11 | | -class LogEntry extends UnlistedSpecialPage { |
| 11 | +class SpecialLogEntry extends UnlistedSpecialPage { |
12 | 12 | |
13 | 13 | /* Functions */ |
14 | 14 | |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | if( $title && $title->userCan( 'edit', $page ) ) |
45 | 45 | { |
46 | 46 | // Get article |
47 | | - $article = new Article( $title ); |
| 47 | + $article = new Article( $title, 0 ); |
48 | 48 | |
49 | 49 | // Build new line |
50 | 50 | $newLine = '*'; |
— | — | @@ -130,6 +130,6 @@ |
131 | 131 | } |
132 | 132 | } |
133 | 133 | // Alert of invalid page |
134 | | - $wgOut->addHTML( wfMsgHtml( 'logentry-invalidpage' ) . ": {$page}" ); |
| 134 | + $wgOut->addWikiMsg( 'logentry-invalidpage', $page ); |
135 | 135 | } |
136 | 136 | } |
Index: trunk/extensions/LogEntry/LogEntry.i18n.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | 'logentry-parserhook-desc' => 'This tag extension provides a form for appending/prepending to log pages', |
18 | 18 | 'logentry-specialpage-desc' => 'This tag extension provides processing for appending to log pages', |
19 | 19 | 'logentry' => 'LogEntry', |
20 | | - 'logentry-invalidpage' => 'Invalid page', |
| 20 | + 'logentry-invalidpage' => 'Invalid page: $1', |
21 | 21 | 'logentry-invalidtoken' => 'Invalid token', |
22 | 22 | ); |
23 | 23 | |
Index: trunk/extensions/LogEntry/LogEntry.php |
— | — | @@ -54,10 +54,10 @@ |
55 | 55 | |
56 | 56 | // Register auto load for the special page class |
57 | 57 | $wgAutoloadClasses['LogEntryHooks'] = $dir . 'LogEntry.hooks.php'; |
58 | | -$wgAutoloadClasses['LogEntry'] = $dir . 'LogEntry.page.php'; |
| 58 | +$wgAutoloadClasses['SpecialLogEntry'] = $dir . 'LogEntry.page.php'; |
59 | 59 | |
60 | 60 | // Register parser hook |
61 | 61 | $wgHooks['ParserFirstCallInit'][] = 'LogEntryHooks::register'; |
62 | 62 | |
63 | 63 | // Register the LogEntry special page |
64 | | -$wgSpecialPages['LogEntry'] = 'LogEntry'; |
| 64 | +$wgSpecialPages['LogEntry'] = 'SpecialLogEntry'; |