-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUsersWatchList.php
34 lines (24 loc) · 1.46 KB
/
UsersWatchList.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$wgAutoloadClasses['UsersWatchList'] = __DIR__ . "/includes/UsersWatchList.php";
$wgAutoloadClasses['SpecialUsersWatchlist'] = __DIR__ . "/includes/SpecialUsersWatchList.php";
$wgAutoloadClasses['SpecialEditUsersWatchList'] = __DIR__ . "/includes/SpecialEditUsersWatchList.php";
$wgAutoloadClasses['ApiUsersWatchList'] = __DIR__ . "/includes/ApiUsersWatchList.php";
$wgAutoloadClasses['UsersWatchListCore'] = __DIR__ . "/includes/UsersWatchListCore.php";
$wgHooks['LoadExtensionSchemaUpdates'][] = 'UsersWatchList::onLoadExtensionSchemaUpdates';
$wgHooks['GetPreferences'][] = 'UsersWatchList::getPreferences';
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'UsersWatchList',
'author' => 'Pierre Boutet',
'description' => "View and edit users watch list.",
'descriptionmsg' => 'userswatchlist-desc',
'version' => '0.2.0',
);
$wgMessagesDirs['UsersWatchList'] = __DIR__ . "/i18n"; # Location of localisation files (Tell MediaWiki to load them)
$wgSpecialPages['UsersWatchList'] = 'SpecialUsersWatchlist'; # Tell MediaWiki about the new special page and its class name
$wgSpecialPages['EditUsersWatchList'] = 'SpecialEditUsersWatchList'; # Tell MediaWiki about the new special page and its class name
//default permissions :
$wgGroupPermissions['*']['editmyuserswatchlist'] = true;
$wgAPIModules['userswatch'] = 'ApiUsersWatchList';
// To hide opt-in in preference and allow all user to be watched :
//$wgUsersWatchListAllowAll = true;