-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecialEsoBuildEditor.php
61 lines (41 loc) · 1.53 KB
/
SpecialEsoBuildEditor.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
<?php
class SpecialEsoBuildEditor extends SpecialPage
{
public $buildDataEditor = null;
function __construct()
{
global $wgOut;
global $uespIsMobile;
parent::__construct( 'EsoBuildEditor' );
$wgOut->addModules( 'ext.EsoBuildData.itemsearchpopup.scripts' );
$wgOut->addModuleStyles( 'ext.EsoBuildData.itemsearchpopup.styles' );
$wgOut->addModules( 'ext.EsoBuildData.viewer.scripts' );
$wgOut->addModuleStyles( 'ext.EsoBuildData.viewer.styles' );
$wgOut->addModules( 'ext.EsoBuildData.editor.scripts' );
$wgOut->addModuleStyles( 'ext.EsoBuildData.editor.styles' );
if ($uespIsMobile || (class_exists("MobileContext") && MobileContext::singleton()->isMobileDevice()))
{
$wgOut->addModuleStyles( 'ext.EsoBuildData.editor.mobilestyles' );
}
$this->buildDataEditor = new EsoBuildDataEditor();
$this->buildDataEditor->baseUrl = "/wiki/Special:EsoBuildEditor";
$this->buildDataEditor->baseResourceUrl = "/esobuilddata/";
}
function execute( $par )
{
global $uespIsMobile;
$this->buildDataEditor->wikiContext = $this->getContext();
$this->buildDataEditor->buildDataViewer->wikiContext = $this->getContext();
$out = $this->getOutput();
$request = $this->getRequest();
$output = $this->getOutput();
$this->setHeaders();
$charId = $request->getText( 'id' );
$raw = $request->getText( 'raw' );
$output->addHTML($this->buildDataEditor->GetOutputHtml());
}
function getGroupName()
{
return 'wiki';
}
};