-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobalWatchlist.php
63 lines (53 loc) · 2.34 KB
/
GlobalWatchlist.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* GlobalWatchlist
* GlobalWatchlist Mediawiki Settings
*
* @author Alexia E. Smith
* @copyright (c) 2016 Curse Inc.
* @license GPLv3
* @package GlobalWatchlist
* @link https://github.com/HydraWiki/GlobalWatchlist
*
**/
/******************************************/
/* Credits */
/******************************************/
$credits = array(
'path' => __FILE__,
'name' => 'GlobalWatchlist',
'author' => 'Alexia E. Smith',
'descriptionmsg' => 'globalwatchlist_description',
'version' => '1.0'
);
$wgExtensionCredits['other'][] = $credits;
/******************************************/
/* Language Strings, Page Aliases, Hooks */
/******************************************/
$extDir = __DIR__;
define('GWL_EXT_DIR', __DIR__);
$wgExtensionMessagesFiles['GlobalWatchlistAlias'] = "{$extDir}/GlobalWatchlist.alias.php";
$wgMessagesDirs['GlobalWatchlist'] = "{$extDir}/i18n";
$wgAutoloadClasses['GlobalWatchlistHooks'] = "{$extDir}/GlobalWatchlist.hooks.php";
$wgAutoloadClasses['SpecialGlobalWatchlist'] = "{$extDir}/specials/SpecialGlobalWatchlist.php";
$wgAutoloadClasses['globalWatchlist'] = "{$extDir}/classes/globalWatchlist.php";
$wgAutoloadClasses['globalRevisionList'] = "{$extDir}/classes/globalRevisionList.php";
$wgAutoloadClasses['gwlSync'] = "{$extDir}/classes/gwlSync.php";
$wgAutoloadClasses['grlSync'] = "{$extDir}/classes/grlSync.php";
$wgAutoloadClasses['TemplateGlobalWatchlist'] = "{$extDir}/templates/TemplateGlobalWatchlist.php";
$wgSpecialPages['GlobalWatchlist'] = 'SpecialGlobalWatchlist';
$wgHooks['WatchArticleComplete'][] = 'GlobalWatchlistHooks::onWatchArticleComplete';
$wgHooks['UnwatchArticleComplete'][] = 'GlobalWatchlistHooks::onUnwatchArticleComplete';
$wgHooks['PageContentSaveComplete'][] = 'GlobalWatchlistHooks::onPageContentSaveComplete';
$wgHooks['PersonalUrls'][] = 'GlobalWatchlistHooks::onPersonalUrls';
if (MASTER_WIKI === true) {
$wgHooks['LoadExtensionSchemaUpdates'][] = 'GlobalWatchlistHooks::onLoadExtensionSchemaUpdates';
}
$extSyncServices[] = 'gwlSync';
$extSyncServices[] = 'grlSync';
$wgResourceModules['ext.globalwatchlist'] = [
'localBasePath' => $extDir,
'remoteExtPath' => 'GlobalWatchlist',
'styles' => ['css/globalwatchlist.css'],
'scripts' => ['js/globalwatchlist.js'],
];