summaryrefslogtreecommitdiff
path: root/LocalSettings.archlinux.org.php
diff options
context:
space:
mode:
authorJakub Klinkovský <j.l.k@gmx.com>2016-07-14 13:10:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-20 09:14:11 +0200
commit862da92c7a3b6479fc4daa4bf3b8944aa6735d8b (patch)
tree7b91dfd19c5e9792b74c436e2b648f6f1779dc7d /LocalSettings.archlinux.org.php
parentb62fd6a871dcdd00c642c3cad4a167c24e6e2c33 (diff)
LocalSettings: move general settings to the top
Diffstat (limited to 'LocalSettings.archlinux.org.php')
-rw-r--r--LocalSettings.archlinux.org.php62
1 files changed, 34 insertions, 28 deletions
diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php
index 6d021f12..89f8ca92 100644
--- a/LocalSettings.archlinux.org.php
+++ b/LocalSettings.archlinux.org.php
@@ -15,11 +15,20 @@ if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
-## Uncomment this to disable output compression
-# $wgDisableOutputCompression = true;
+##
+## General settings
+##
$wgSitename = "ArchWiki";
+## The protocol and server name to use in fully-qualified URLs
+$wgServer = "https://wiki.archlinux.org";
+
+$wgLocaltimezone = 'UTC';
+
+# Site language code, should be one of the list in ./languages/Names.php
+$wgLanguageCode = "en";
+
## 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:
@@ -29,9 +38,6 @@ $wgScriptPath = "";
$wgUsePathInfo = true;
$wgScriptExtension = ".php";
-## The protocol and server name to use in fully-qualified URLs
-$wgServer = "https://wiki.archlinux.org";
-
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
@@ -39,6 +45,29 @@ $wgStylePath = "$wgScriptPath/skins";
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgStylePath/archlinux/archlogo.png";
+## 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
+$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
+$wgRightsText = "GNU Free Documentation License 1.3 or later";
+$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png";
+
+# 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)
+# TODO: -1 is the default
+$wgResourceLoaderMaxQueryLength = -1;
+
+$wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\.git(.*)'] = 'https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/commit/?id=%H';
+
+$wgJobRunRate = 0;
+
+
+## Uncomment this to disable output compression
+# $wgDisableOutputCompression = true;
+
## UPO means: this is also a user preference option
$wgEnableEmail = true;
@@ -100,9 +129,6 @@ $wgFileCacheDirectory = "$IP/../cache/html";
$wgUseGzip = true;
$wgUseETag = true;
-# Site language code, should be one of the list in ./languages/Names.php
-$wgLanguageCode = "en";
-
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
//require_once "$IP/skins/ArchLinux/ArchLinux.php";
@@ -122,22 +148,6 @@ $wgArchNavBar = array(
$wgArchNavBarSelectedDefault = 'Wiki';
$wgFooterIcons = array();
-$wgLocaltimezone = 'UTC';
-
-## 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
-$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
-$wgRightsText = "GNU Free Documentation License 1.3 or later";
-$wgRightsIcon = "{$wgStylePath}/common/images/gnu-fdl.png";
-
-# 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 = -1;
-
# The following permissions were set based on your choice in the installer
$wgEmailConfirmToEdit = true;
$wgAllowUserCssPrefs = false;
@@ -180,10 +190,6 @@ $wgAutoConfirmCount = 20;
# $wgShowSQLErrors = true;
# $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.';
-$wgGitRepositoryViewers['.+projects\.archlinux\.org/vhosts/wiki\.archlinux\.org\.git(.*)'] = 'https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/commit/?id=%H';
-
-$wgJobRunRate = 0;
-
require_once( "$IP/extensions/Nuke/Nuke.php" );
wfLoadExtension( 'CheckUser' );