2010-05-07 12:25:01 +00:00
|
|
|
<?php
|
2010-08-21 18:20:09 +00:00
|
|
|
/**
|
|
|
|
|
* Generator for LocalSettings.php file.
|
|
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
* @ingroup Deployment
|
|
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-07-29 18:36:39 +00:00
|
|
|
/**
|
2010-08-21 18:20:09 +00:00
|
|
|
* Class for generating LocalSettings.php file.
|
2010-07-29 18:36:39 +00:00
|
|
|
*
|
|
|
|
|
* @ingroup Deployment
|
|
|
|
|
* @since 1.17
|
|
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
class LocalSettingsGenerator {
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-07-21 10:56:35 +00:00
|
|
|
private $extensions = array();
|
|
|
|
|
private $values = array();
|
2011-06-02 01:26:26 +00:00
|
|
|
private $groupPermissions = array();
|
2010-07-21 10:56:35 +00:00
|
|
|
private $dbSettings = '';
|
2010-05-07 12:25:01 +00:00
|
|
|
private $safeMode = false;
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-07-21 10:56:35 +00:00
|
|
|
/**
|
|
|
|
|
* @var Installer
|
|
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
private $installer;
|
|
|
|
|
|
|
|
|
|
/**
|
2010-06-30 03:36:20 +00:00
|
|
|
* Constructor.
|
2010-12-16 11:20:39 +00:00
|
|
|
*
|
2010-05-07 12:25:01 +00:00
|
|
|
* @param $installer Installer subclass
|
|
|
|
|
*/
|
|
|
|
|
public function __construct( Installer $installer ) {
|
|
|
|
|
$this->installer = $installer;
|
2010-11-08 13:59:10 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
$this->extensions = $installer->getVar( '_Extensions' );
|
2010-11-08 13:59:10 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
$db = $installer->getDBInstaller( $installer->getVar( 'wgDBtype' ) );
|
2010-06-29 02:46:11 +00:00
|
|
|
|
2010-07-21 10:56:35 +00:00
|
|
|
$confItems = array_merge(
|
|
|
|
|
array(
|
2011-06-16 05:13:29 +00:00
|
|
|
'wgServer', 'wgScriptPath', 'wgScriptExtension',
|
2010-07-21 10:56:35 +00:00
|
|
|
'wgPasswordSender', 'wgImageMagickConvertCommand', 'wgShellLocale',
|
|
|
|
|
'wgLanguageCode', 'wgEnableEmail', 'wgEnableUserEmail', 'wgDiff3',
|
|
|
|
|
'wgEnotifUserTalk', 'wgEnotifWatchlist', 'wgEmailAuthentication',
|
|
|
|
|
'wgDBtype', 'wgSecretKey', 'wgRightsUrl', 'wgSitename', 'wgRightsIcon',
|
2011-08-09 14:57:55 +00:00
|
|
|
'wgRightsText', 'wgMainCacheType', 'wgEnableUploads',
|
2010-07-21 10:56:35 +00:00
|
|
|
'wgMainCacheType', '_MemCachedServers', 'wgDBserver', 'wgDBuser',
|
2010-12-07 02:20:14 +00:00
|
|
|
'wgDBpassword', 'wgUseInstantCommons', 'wgUpgradeKey', 'wgDefaultSkin',
|
2011-05-05 11:52:23 +00:00
|
|
|
'wgMetaNamespace', 'wgResourceLoaderMaxQueryLength'
|
2010-07-21 10:56:35 +00:00
|
|
|
),
|
|
|
|
|
$db->getGlobalNames()
|
|
|
|
|
);
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-12 20:30:01 +00:00
|
|
|
$unescaped = array( 'wgRightsIcon' );
|
2010-12-16 11:20:39 +00:00
|
|
|
$boolItems = array(
|
2010-07-21 10:56:35 +00:00
|
|
|
'wgEnableEmail', 'wgEnableUserEmail', 'wgEnotifUserTalk',
|
|
|
|
|
'wgEnotifWatchlist', 'wgEmailAuthentication', 'wgEnableUploads', 'wgUseInstantCommons'
|
|
|
|
|
);
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
foreach( $confItems as $c ) {
|
|
|
|
|
$val = $installer->getVar( $c );
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
if( in_array( $c, $boolItems ) ) {
|
|
|
|
|
$val = wfBoolToStr( $val );
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-12 20:30:01 +00:00
|
|
|
if ( !in_array( $c, $unescaped ) ) {
|
|
|
|
|
$val = self::escapePhpString( $val );
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
$this->values[$c] = $val;
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
$this->dbSettings = $db->getLocalSettings();
|
|
|
|
|
$this->safeMode = $installer->getVar( '_SafeMode' );
|
|
|
|
|
$this->values['wgEmergencyContact'] = $this->values['wgPasswordSender'];
|
|
|
|
|
}
|
|
|
|
|
|
2011-06-02 01:26:26 +00:00
|
|
|
/**
|
|
|
|
|
* For $wgGroupPermissions, set a given ['group']['permission'] value.
|
|
|
|
|
* @param $group String Group name
|
|
|
|
|
* @param $rightsArr Array An array of permissions, in the form of:
|
|
|
|
|
* array( 'right' => true, 'right2' => false )
|
|
|
|
|
*/
|
|
|
|
|
public function setGroupRights( $group, $rightsArr ) {
|
|
|
|
|
$this->groupPermissions[$group] = $rightsArr;
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 18:25:10 +00:00
|
|
|
/**
|
|
|
|
|
* Returns the escaped version of a string of php code.
|
2010-12-16 11:20:39 +00:00
|
|
|
*
|
2010-07-29 18:25:10 +00:00
|
|
|
* @param $string String
|
2010-12-16 11:20:39 +00:00
|
|
|
*
|
2010-07-29 18:25:10 +00:00
|
|
|
* @return String
|
|
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
public static function escapePhpString( $string ) {
|
|
|
|
|
if ( is_array( $string ) || is_object( $string ) ) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-07-21 10:56:35 +00:00
|
|
|
return strtr(
|
|
|
|
|
$string,
|
2010-05-07 12:25:01 +00:00
|
|
|
array(
|
|
|
|
|
"\n" => "\\n",
|
|
|
|
|
"\r" => "\\r",
|
|
|
|
|
"\t" => "\\t",
|
|
|
|
|
"\\" => "\\\\",
|
|
|
|
|
"\$" => "\\\$",
|
|
|
|
|
"\"" => "\\\""
|
2010-07-21 10:56:35 +00:00
|
|
|
)
|
|
|
|
|
);
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2010-06-29 02:46:11 +00:00
|
|
|
* Return the full text of the generated LocalSettings.php file,
|
|
|
|
|
* including the extensions
|
2010-12-16 11:20:39 +00:00
|
|
|
*
|
2010-07-29 18:25:10 +00:00
|
|
|
* @return String
|
2010-05-07 12:25:01 +00:00
|
|
|
*/
|
2010-06-29 02:46:11 +00:00
|
|
|
public function getText() {
|
2010-05-07 12:25:01 +00:00
|
|
|
$localSettings = $this->getDefaultText();
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
if( count( $this->extensions ) ) {
|
2011-03-08 09:28:13 +00:00
|
|
|
$localSettings .= "
|
|
|
|
|
# Enabled Extensions. Most extensions are enabled by including the base extension file here
|
|
|
|
|
# but check specific extension documentation for more details
|
|
|
|
|
# The following extensions were automatically enabled:\n";
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-11-19 01:31:16 +00:00
|
|
|
foreach( $this->extensions as $extName ) {
|
|
|
|
|
$encExtName = self::escapePhpString( $extName );
|
2011-08-30 20:53:26 +00:00
|
|
|
$localSettings .= "require_once( \"\$IP/extensions/$encExtName/$encExtName.php\" );\n";
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
}
|
2010-06-29 02:46:11 +00:00
|
|
|
|
2011-03-08 09:28:13 +00:00
|
|
|
$localSettings .= "\n\n# End of automatically generated settings.
|
|
|
|
|
# Add more configuration options below.\n\n";
|
|
|
|
|
|
2010-06-29 02:46:11 +00:00
|
|
|
return $localSettings;
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-02 17:11:35 +00:00
|
|
|
/**
|
|
|
|
|
* Write the generated LocalSettings to a file
|
|
|
|
|
*
|
|
|
|
|
* @param $fileName String Full path to filename to write to
|
|
|
|
|
*/
|
|
|
|
|
public function writeFile( $fileName ) {
|
2010-11-02 20:26:43 +00:00
|
|
|
file_put_contents( $fileName, $this->getText() );
|
2010-11-02 17:11:35 +00:00
|
|
|
}
|
|
|
|
|
|
2010-07-29 18:25:10 +00:00
|
|
|
/**
|
|
|
|
|
* @return String
|
|
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
private function buildMemcachedServerList() {
|
|
|
|
|
$servers = $this->values['_MemCachedServers'];
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
if( !$servers ) {
|
|
|
|
|
return 'array()';
|
|
|
|
|
} else {
|
|
|
|
|
$ret = 'array( ';
|
|
|
|
|
$servers = explode( ',', $servers );
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
foreach( $servers as $srv ) {
|
|
|
|
|
$srv = trim( $srv );
|
|
|
|
|
$ret .= "'$srv', ";
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
return rtrim( $ret, ', ' ) . ' )';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-29 18:25:10 +00:00
|
|
|
/**
|
|
|
|
|
* @return String
|
2010-12-16 11:20:39 +00:00
|
|
|
*/
|
2010-05-07 12:25:01 +00:00
|
|
|
private function getDefaultText() {
|
|
|
|
|
if( !$this->values['wgImageMagickConvertCommand'] ) {
|
|
|
|
|
$this->values['wgImageMagickConvertCommand'] = '/usr/bin/convert';
|
|
|
|
|
$magic = '#';
|
|
|
|
|
} else {
|
|
|
|
|
$magic = '';
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
if( !$this->values['wgShellLocale'] ) {
|
|
|
|
|
$this->values['wgShellLocale'] = 'en_US.UTF-8';
|
|
|
|
|
$locale = '#';
|
|
|
|
|
} else {
|
|
|
|
|
$locale = '';
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2011-10-18 17:26:09 +00:00
|
|
|
//$rightsUrl = $this->values['wgRightsUrl'] ? '' : '#'; // TODO: Fixme, I'm unused!
|
2010-08-12 09:55:05 +00:00
|
|
|
$hashedUploads = $this->safeMode ? '' : '#';
|
2011-01-28 21:02:36 +00:00
|
|
|
$metaNamespace = '';
|
|
|
|
|
if( $this->values['wgMetaNamespace'] !== $this->values['wgSitename'] ) {
|
|
|
|
|
$metaNamespace = "\$wgMetaNamespace = \"{$this->values['wgMetaNamespace']}\";\n";
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2011-06-02 01:26:26 +00:00
|
|
|
$groupRights = '';
|
|
|
|
|
if( $this->groupPermissions ) {
|
|
|
|
|
$groupRights .= "# The following permissions were set based on your choice in the installer\n";
|
|
|
|
|
foreach( $this->groupPermissions as $group => $rightArr ) {
|
|
|
|
|
$group = self::escapePhpString( $group );
|
|
|
|
|
foreach( $rightArr as $right => $perm ) {
|
|
|
|
|
$right = self::escapePhpString( $right );
|
|
|
|
|
$groupRights .= "\$wgGroupPermissions['$group']['$right'] = " .
|
2011-06-06 20:01:48 +00:00
|
|
|
wfBoolToStr( $perm ) . ";\n";
|
2011-06-02 01:26:26 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
switch( $this->values['wgMainCacheType'] ) {
|
|
|
|
|
case 'anything':
|
|
|
|
|
case 'db':
|
|
|
|
|
case 'memcached':
|
|
|
|
|
case 'accel':
|
|
|
|
|
$cacheType = 'CACHE_' . strtoupper( $this->values['wgMainCacheType']);
|
|
|
|
|
break;
|
|
|
|
|
case 'none':
|
|
|
|
|
default:
|
|
|
|
|
$cacheType = 'CACHE_NONE';
|
|
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
$mcservers = $this->buildMemcachedServerList();
|
|
|
|
|
return "<?php
|
|
|
|
|
# This file was automatically generated by the MediaWiki {$GLOBALS['wgVersion']}
|
|
|
|
|
# installer. If you make manual changes, please keep track in case you
|
|
|
|
|
# need to recreate them later.
|
|
|
|
|
#
|
|
|
|
|
# See includes/DefaultSettings.php for all configurable settings
|
|
|
|
|
# and their default values, but don't forget to make changes in _this_
|
|
|
|
|
# file, not there.
|
|
|
|
|
#
|
|
|
|
|
# Further documentation for configuration settings may be found at:
|
|
|
|
|
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
|
|
|
|
|
|
2010-12-06 15:00:56 +00:00
|
|
|
# Protect against web entry
|
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
|
|
|
exit;
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
## Uncomment this to disable output compression
|
|
|
|
|
# \$wgDisableOutputCompression = true;
|
|
|
|
|
|
2011-01-28 21:02:36 +00:00
|
|
|
\$wgSitename = \"{$this->values['wgSitename']}\";
|
|
|
|
|
{$metaNamespace}
|
2010-05-07 12:25:01 +00:00
|
|
|
## 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 = \"{$this->values['wgScriptPath']}\";
|
|
|
|
|
\$wgScriptExtension = \"{$this->values['wgScriptExtension']}\";
|
|
|
|
|
|
2011-06-16 05:13:29 +00:00
|
|
|
## The protocol and server name to use in fully-qualified URLs
|
2011-06-15 07:35:47 +00:00
|
|
|
\$wgServer = \"{$this->values['wgServer']}\";
|
|
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
## 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 = \"\$wgStylePath/common/images/wiki.png\";
|
|
|
|
|
|
|
|
|
|
## UPO means: this is also a user preference option
|
|
|
|
|
|
|
|
|
|
\$wgEnableEmail = {$this->values['wgEnableEmail']};
|
|
|
|
|
\$wgEnableUserEmail = {$this->values['wgEnableUserEmail']}; # UPO
|
|
|
|
|
|
|
|
|
|
\$wgEmergencyContact = \"{$this->values['wgEmergencyContact']}\";
|
2010-07-04 22:11:14 +00:00
|
|
|
\$wgPasswordSender = \"{$this->values['wgPasswordSender']}\";
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-07-04 22:11:14 +00:00
|
|
|
\$wgEnotifUserTalk = {$this->values['wgEnotifUserTalk']}; # UPO
|
|
|
|
|
\$wgEnotifWatchlist = {$this->values['wgEnotifWatchlist']}; # UPO
|
2010-05-07 12:25:01 +00:00
|
|
|
\$wgEmailAuthentication = {$this->values['wgEmailAuthentication']};
|
|
|
|
|
|
|
|
|
|
## Database settings
|
|
|
|
|
\$wgDBtype = \"{$this->values['wgDBtype']}\";
|
|
|
|
|
\$wgDBserver = \"{$this->values['wgDBserver']}\";
|
|
|
|
|
\$wgDBname = \"{$this->values['wgDBname']}\";
|
|
|
|
|
\$wgDBuser = \"{$this->values['wgDBuser']}\";
|
|
|
|
|
\$wgDBpassword = \"{$this->values['wgDBpassword']}\";
|
|
|
|
|
|
|
|
|
|
{$this->dbSettings}
|
|
|
|
|
|
|
|
|
|
## Shared memory settings
|
2010-07-04 22:11:14 +00:00
|
|
|
\$wgMainCacheType = $cacheType;
|
2010-05-07 12:25:01 +00:00
|
|
|
\$wgMemCachedServers = $mcservers;
|
|
|
|
|
|
|
|
|
|
## To enable image uploads, make sure the 'images' directory
|
|
|
|
|
## is writable, then set this to true:
|
2010-07-04 22:11:14 +00:00
|
|
|
\$wgEnableUploads = {$this->values['wgEnableUploads']};
|
2010-05-07 12:25:01 +00:00
|
|
|
{$magic}\$wgUseImageMagick = true;
|
|
|
|
|
{$magic}\$wgImageMagickConvertCommand = \"{$this->values['wgImageMagickConvertCommand']}\";
|
|
|
|
|
|
2010-07-11 11:27:58 +00:00
|
|
|
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
|
2010-07-10 12:29:15 +00:00
|
|
|
\$wgUseInstantCommons = {$this->values['wgUseInstantCommons']};
|
|
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
## If you use ImageMagick (or any other shell command) on a
|
|
|
|
|
## Linux server, this will need to be set to the name of an
|
|
|
|
|
## available UTF-8 locale
|
|
|
|
|
{$locale}\$wgShellLocale = \"{$this->values['wgShellLocale']}\";
|
|
|
|
|
|
|
|
|
|
## If you want to use image uploads under safe mode,
|
|
|
|
|
## create the directories images/archive, images/thumb and
|
|
|
|
|
## images/temp, and make them all writable. Then uncomment
|
|
|
|
|
## this, if it's not already uncommented:
|
|
|
|
|
{$hashedUploads}\$wgHashedUploadDirectory = false;
|
|
|
|
|
|
|
|
|
|
## Set \$wgCacheDirectory to a writable directory on the web server
|
|
|
|
|
## to make your wiki go slightly faster. The directory should not
|
|
|
|
|
## be publically accessible from the web.
|
|
|
|
|
#\$wgCacheDirectory = \"\$IP/cache\";
|
|
|
|
|
|
2011-06-24 00:25:14 +00:00
|
|
|
# Site language code, should be one of the list in ./languages/Names.php
|
2010-05-07 12:25:01 +00:00
|
|
|
\$wgLanguageCode = \"{$this->values['wgLanguageCode']}\";
|
|
|
|
|
|
|
|
|
|
\$wgSecretKey = \"{$this->values['wgSecretKey']}\";
|
|
|
|
|
|
2010-11-09 16:51:08 +00:00
|
|
|
# Site upgrade key. Must be set to a string (default provided) to turn on the
|
|
|
|
|
# web installer while LocalSettings.php is in place
|
* Made the web upgrade process more friendly. Instead of saying "access denied, go away" when the user has a normal LocalSettings.php file, generate a random $wgUpgradeKey and instruct the user to insert it into their LocalSettings.php. The subsequent file modification then authenticates the session and allows the upgrade.
* When an upgrade key is entered, or a supplied upgrade key is edited into LocalSettings.php by the upgrader, fetch database settings from LocalSettings.php and AdminSettings.php for use during the upgrade. This allows the DBConnect page to be skipped, making web upgrade almost as easy to use as CLI upgrade.
* Made LocalSettingsGenerator add $wgUpgradeKey in non-commented form, for easier subsequent upgrades.
* Converted the $wgUpgradeKey check to a normal in-sequence page, called ExistingWiki. This allows the removal of related special cases from WebInstaller. The code for WebInstaller_ExistingWiki is loosely based on WebInstaller_Locked.
* Added Status::replaceMessage(), to support informative DB connection error messages from the ExistingWiki page.
* In WebInstaller::getInfoBox(), call parse() with $lineStart=true, so that line-start syntax like bullet points can work.
* Reduced the length of the generated $wgUpgradeKey from 64 to 16. This is ample for what it does, and makes it fit on the screen and not overlap with the right sidebar when when displayed by WebInstaller_ExistingWiki.
* Added $wgUpgradeKey to DefaultSettings.php.
2010-12-09 08:24:54 +00:00
|
|
|
\$wgUpgradeKey = \"{$this->values['wgUpgradeKey']}\";
|
2010-11-09 16:51:08 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
## Default skin: you can change the default skin. Use the internal symbolic
|
2010-06-08 13:38:46 +00:00
|
|
|
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
|
2010-12-07 02:20:14 +00:00
|
|
|
\$wgDefaultSkin = \"{$this->values['wgDefaultSkin']}\";
|
2010-05-07 12:25:01 +00:00
|
|
|
|
|
|
|
|
## For attaching licensing metadata to pages, and displaying an
|
|
|
|
|
## appropriate copyright notice / icon. GNU Free Documentation
|
|
|
|
|
## License and Creative Commons licenses are supported so far.
|
|
|
|
|
\$wgRightsPage = \"\"; # Set to the title of a wiki page that describes your license/copyright
|
2010-07-04 22:11:14 +00:00
|
|
|
\$wgRightsUrl = \"{$this->values['wgRightsUrl']}\";
|
2010-05-07 12:25:01 +00:00
|
|
|
\$wgRightsText = \"{$this->values['wgRightsText']}\";
|
|
|
|
|
\$wgRightsIcon = \"{$this->values['wgRightsIcon']}\";
|
|
|
|
|
|
2010-07-04 22:11:18 +00:00
|
|
|
# Path to the GNU diff3 utility. Used for conflict resolution.
|
2010-05-07 12:25:01 +00:00
|
|
|
\$wgDiff3 = \"{$this->values['wgDiff3']}\";
|
2011-05-05 11:52:23 +00:00
|
|
|
|
|
|
|
|
# Query string length limit for ResourceLoader. You should only set this if
|
|
|
|
|
# your web server has a query string length limit (then set it to that limit),
|
|
|
|
|
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
|
|
|
|
|
# that value)
|
|
|
|
|
\$wgResourceLoaderMaxQueryLength = {$this->values['wgResourceLoaderMaxQueryLength']};
|
2011-06-02 01:26:26 +00:00
|
|
|
|
|
|
|
|
{$groupRights}";
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
2010-12-16 11:20:39 +00:00
|
|
|
|
2010-08-12 09:55:05 +00:00
|
|
|
}
|