-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJSCMOD.php
75 lines (49 loc) · 2.09 KB
/
JSCMOD.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
64
65
66
67
68
69
70
71
72
73
74
75
<?php
$egJSCMOD_GroupPathName = str_replace(' ','',$egJSCMOD_GroupName);
$wgSitename = $egJSCMOD_GroupName . ' Wiki';
$wgMetaNamespace = str_replace(' ','_',$wgSitename);
$wgEmergencyContact = str_replace(' ','-',$wgSitename) . '[email protected]';
$wgPasswordSender = $wgEmergencyContact;
require_once "Includes/JSCMOD.body.php";
$extensionIP = JSCMOD::setExtensionIP( __DIR__ );
// development: error reporting
if ( $egJSCMOD_debug ) {
// turn error logging on
error_reporting( -1 );
ini_set( 'display_errors', 1 );
ini_set( 'log_errors', 1 );
// Output errors to log file
ini_set( 'error_log', __DIR__ . '/php.log' );
// MediaWiki Debug Tools
$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
}
// production: no error reporting
else {
error_reporting(0);
ini_set("display_errors", 0);
}
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki/$egJSCMOD_GroupPathName";
$wgScriptExtension = ".php";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgScriptPath/extensions/JSCMOD/Groups/$egJSCMOD_GroupPathName/logo.png";
$wgFavicon = "$wgScriptPath/extensions/JSCMOD/Groups/$egJSCMOD_GroupPathName/favicon.ico";
$wgAppleTouchIcon = "$wgScriptPath/extensions/JSCMOD/Groups/$egJSCMOD_GroupPathName/apple-touch-icon.png";
/**
* JSC-MOD specific javascript modifications
**/
$wgHooks['AjaxAddScript'][] = 'JSCMOD::addJSandCSS';
require_once "$extensionIP/Config/Extensions.php";
## The following included script gets programmatically modified
## during backup operations to set read-only prior to backup and
## unset when backup is complete
include "$extensionIP/Config/wgReadOnly.php";
require_once "$extensionIP/Config/DefaultSettings.php";