-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTilesheets.php
52 lines (51 loc) · 2.67 KB
/
Tilesheets.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
<?php
/**
* Tilesheets
*
* @file
* @ingroup Extensions
* @version 3.2.0
* @author Jinbobo <[email protected]>
* @author Peter Atashian
* @author Telshin <[email protected]>
* @author Noahm <[email protected]>
* @author Cameron Chunn <[email protected]>
* @author Eli Foster <[email protected]>
* @license
* @package Tilesheets
* @link https://github.com/HydraWiki/Tilesheets
*/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'Tilesheets' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['Tilesheets'] = __DIR__ . '/i18n';
$wgAutoloadClasses['TilesheetsQuerySheetsApi'] = __DIR__ . '/api/TilesheetsQuerySheetsApi.php';
$wgAPIListModules['tilesheets'] = 'TilesheetsQuerySheetsApi';
$wgAutoloadClasses['TilesheetsQueryTilesApi'] = __DIR__ . '/api/TilesheetsQueryTilesApi.php';
$wgAPIListModules['tiles'] = 'TilesheetsQueryTilesApi';
$wgAutoloadClasses['TilesheetsQueryTranslationsApi'] = __DIR__ . '/api/TilesheetsQueryTranslationsApi.php';
$wgAPIListModules['tiletranslations'] = 'TilesheetsQueryTranslationsApi';
$wgAutoloadClasses['TilesheetsAddTilesApi'] = __DIR__ . '/api/TilesheetsAddTilesApi.php';
$wgAPIModules['addtiles'] = 'TilesheetsAddTilesApi';
$wgAutoloadClasses['TilesheetsDeleteSheetApi'] = __DIR__ . '/api/TilesheetsDeleteSheetApi.php';
$wgAPIModules['deletesheet'] = 'TilesheetsDeleteSheetApi';
$wgAutoloadClasses['TilesheetsAddSheetApi'] = __DIR__ . '/api/TilesheetsAddSheetApi.php';
$wgAPIModules['createsheet'] = 'TilesheetsAddSheetApi';
$wgAutoloadClasses['TilesheetsDeleteTilesApi'] = __DIR__ . '/api/TilesheetsDeleteTilesApi.php';
$wgAPIModules['deletetiles'] = 'TilesheetsDeleteTilesApi';
$wgAutoloadClasses['TilesheetsEditTileApi'] = __DIR__ . '/api/TilesheetsEditTileApi.php';
$wgAPIModules['edittile'] = 'TilesheetsEditTileApi';
$wgAutoloadClasses['TilesheetsEditSheetApi'] = __DIR__ . '/api/TilesheetsEditSheetApi.php';
$wgAPIModules['editsheet'] = 'TilesheetsEditSheetApi';
$wgAutoloadClasses['TilesheetsDeleteTranslationApi'] = __DIR__ . '/api/TilesheetsDeleteTranslationApi.php';
$wgAPIModules['deletetranslation'] = 'TilesheetsDeleteTranslationApi';
$wgAutoloadClasses['TilesheetsTranslateTileApi'] = __DIR__ . '/api/TilesheetsTranslateTileApi.php';
$wgAPIModules['translatetile'] = 'TilesheetsTranslateTileApi';
wfWarn(
'Deprecated PHP entry point used for Tilesheets extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
);
return;
} else {
die( 'This version of the Tilesheets extension requires MediaWiki 1.25+' );
}