Commit graph

43 commits

Author SHA1 Message Date
Alexandre Emsenhuber
09bb6975c5 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: I1615bf268515ed7169e33173cea6ec30402451dc
2012-05-06 07:50:15 +02:00
devunt
f848a6e6a5 Added more description of Short URL
added description with example

Change-Id: I31668526202c0e13d2a85b2805a959efc249ad0d
2012-04-19 22:43:18 +09:00
Sam Reed
856faea6d6 Add documentation
Fix some unused variables, commented some others out
2011-10-18 17:26:09 +00:00
Chad Horohoe
b61c84fb62 Prefix extensions with $IP. Followup r94107 (grumble grumble about people fixmeing rather than doing the 4 character fix themselves...) 2011-08-30 20:53:26 +00:00
Chad Horohoe
9051d34291 Drop unused and unset $wgRightsCode from generated LocalSettings.php 2011-08-09 14:57:55 +00:00
Chad Horohoe
3852b5a038 (bug 30264) MediaWiki installer uses require, de facto is require_once 2011-08-09 13:59:36 +00:00
Robin Pepermans
2a4f245ea3 The comment refers to the wrong path (should have been languages/classes/LanguageXx.php). Instead, refer to Names.php because it is a complete list (there is e.g. no LanguageNl.php file). 2011-06-24 00:25:14 +00:00
Tim Starling
9420ff446e Removed $wgProto. Previously, setting this undocumented global variable to anything other than the part of $wgServer before the first colon would cause various things to subtly screw up. Similarly, forgetting to set it when you override $wgServer in LocalSettings.php would break things too.
Exposing it in the default LocalSettings.php as I did in r90105 was not a good solution, really the only way to avoid breakage is to just get the protocol from $wgServer whenever you need the protocol.

Fixed $wgCookieSecure so that it will be enabled automatically if the user sets $wgServer to an https URL in LocalSettings.php. Added documentation for other cookie-related globals.

Grep indicates that $wgProto is not used by any extensions. $wgCookieSecure is used, hence the need for the Setup.php patch.
2011-06-16 05:13:29 +00:00
Tim Starling
6a2123260b * (bug 28798) Set $wgServer in the default LocalSettings.php
* (bug 14977) When detecting $wgServer, treat IPv6 addresses in $_SERVER['SERVER_NAME'] etc. in a sensible way. 
* Tests for the new functions in IP.php and Installer.php
2011-06-15 07:35:47 +00:00
Sam Reed
1d7cf0ff33 Followup r88873, remove setting of $wgEnableCreativeCommonsRdf in LocalSettingsGenerator 2011-06-11 07:33:35 +00:00
Chad Horohoe
5d1e7be16d ; 2011-06-06 20:01:48 +00:00
Chad Horohoe
89529808d8 Make user right selection in installer actually work, thanks Krinkle for spotting this 2011-06-02 01:26:26 +00:00
Roan Kattouw
648bed9f83 For bug 28738, have the installer check for the Suhosin GET variable length limit and set $wgResourceLoaderMaxQueryLength correspondingly in LocalSettings.php . Of course this only works for new installs, no idea if this can be handled cleanly for upgrades 2011-05-05 11:52:23 +00:00
Brion Vibber
ff0524b3bc Initial stab at breaking math/texvc out to Math extension.
* (bug 14202) $wgUseTeX has been superseded by the Math extension. To re-enable
  math conversion after upgrading, obtain the Math extension from SVN or from
  http://www.mediawiki.org/wiki/Extension:Math and add to LocalSettings.php:
  require_once "$IP/extensions/Math/Math.php";

This is an initial stab, and a few things remain to be cleaned up:
* messages need to be moved from core to extension
* MW_MATH_* constants should be moved to the extension from core
* old back-compat math names interfaces using those constants should be removed from message files
* classic edit toolbar's math button should be added from the extension (or else dropped) -- currently there's not a clean hook, but could do it by JS
* couple of things like the 'armourMath' function on Language & LanguageConverter may want to be redone just as an unconditional, if that's simpler.

Setting $wgUseTeX alone will no longer have any affect. The var's still there for the moment as a few bits still need to be fully moved out from core.
2011-04-09 00:39:40 +00:00
Max Semenik
db5675164d LocalSettings generation tweaks:
* Mention extensions only if user chose some during installation
* Added a comment at the bottom suggesting where to put new settings
2011-03-08 09:28:13 +00:00
Chad Horohoe
11b835e541 (bug 26939) $wgMetaNamespace is not being generated 2011-01-28 21:02:36 +00:00
Sam Reed
984c692ec4 Removing trailing whitespace 2010-12-16 11:20:39 +00:00
Tim Starling
31eae6a575 * 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
Chad Horohoe
75f52155f2 Address fixme on r67621: use $wgDefaultSkin instead of hardcoding vector
Would like a UI to choose skin with like previews or something, but its not urgent
2010-12-07 02:20:14 +00:00
Tim Starling
07bb8ce5b5 Remove some of the rubbish that has been accumulating in the default LocalSettings.php for years, especially code as opposed to configuration data:
* Don't set $IP. The entry point already sets it, so there's no point. Users can still set it if they can figure out a way to do it without breaking things.
* Don't include DefaultSettings.php. Doing that is code, not configuration, and it can easily be done in WebStart/Maintenance. Some non-standard entry points in extensions may be broken by this. That's their fault for being non-standard. Backwards compatibility is preserved thanks to require_once().
* Introduce $wgInvalidateCacheOnLocalSettingsChange, which when set, causes $wgCacheEpoch to be updated in the way that it previously was in the default LocalSettings.php.
* Don't set $wgLocalInterwiki to some nonsense value (possibly including spaces and punctuation in the new installer). It should be only for actual interwiki prefixes. Since most wikis don't have them, I set this to false by default and adjusted the referring code to accept this. 
* Removed the guard for web invocation with $wgCommandLineMode set. This ancient code is redundant with modern protections in doMaintenance.php. 
* In DefaultSettings.php, fixed fold terminator placement near $wgLoadScript
* Add a web entry point guard. That's one piece of code which really is necessary.
2010-12-06 15:00:56 +00:00
Tim Starling
96dfddaec2 * In CoreInstaller, fixed notice when extensions are present, due to incorrect format of extensions callback entry
* In LocalSettingsGenerator, fixed PHP escaping of extension name.
2010-11-19 01:31:16 +00:00
Chad Horohoe
4ab439e59e Followup r75392. Per IRC, we should generate a default $wgUpgradeKey (took a semi-random part of an md5()'d $wgSecretKey) to hopefully encourage people from setting it to things like "abc." Leave it commented, so default behavior is still to keep the installer disabled 2010-11-09 16:51:08 +00:00
Chad Horohoe
11604375f8 rm unused $configPath 2010-11-08 13:59:10 +00:00
Chad Horohoe
422a7e80b1 Fixup r75858, copy+paste error 2010-11-02 20:26:43 +00:00
Chad Horohoe
719483a29b Followup r70207, make path for LocalSettings.php configurable 2010-11-02 17:11:35 +00:00
Nimish Gautam
634526602f added line expressly stating where the extensions are included 2010-09-15 21:13:57 +00:00
Alexandre Emsenhuber
b8cafd4978 * Added file description headers
* Added @file where needed
2010-08-21 18:20:09 +00:00
Platonides
8111f69c83 Follow up r63404. If we are in safe mode, we do not want hashed uploads. 2010-08-12 09:55:05 +00:00
Chad Horohoe
f5b43f4ecd (bug 24408) Remove include path changes in LocalSettings.php. Not needed, as everything should be in the Autoloader 2010-08-08 16:35:17 +00:00
Jeroen De Dauw
635e2c38f2 Added deployment documentation group 2010-07-29 18:36:39 +00:00
Jeroen De Dauw
ba015d3d76 Style and doc improvements 2010-07-29 18:25:10 +00:00
Jeroen De Dauw
733e1a87a8 Style and doc improvements 2010-07-21 10:56:35 +00:00
Chad Horohoe
edd12f0fd6 Installer no longer writes LocalSettings.php to /config. Now offer it as a download to the user and instruct them to upload/move it to the wiki base directory. Also only set _InstallDone if we hit no fatals during installation 2010-07-14 01:18:14 +00:00
Chad Horohoe
a3e692ea1b Doc fixes and message cleanups to r69238 2010-07-11 11:27:58 +00:00
Chad Horohoe
1da6a4770d Add $wgUseInstantCommons support to installer, tweak help based on presumed access to it 2010-07-10 12:29:15 +00:00
Ævar Arnfjörð Bjarmason
974a55da23 LocalSettingsGenerator: Document $wgLanguageCode in the generated LocalSettings.php 2010-07-04 22:11:20 +00:00
Ævar Arnfjörð Bjarmason
5a37b39e38 LocalSettingsGenerator: Document $wgDiff3 in the generated LocalSettings.php 2010-07-04 22:11:18 +00:00
Ævar Arnfjörð Bjarmason
dfb76037ef LocalSettingsGenerator: Align the few assignments in the generated LocalSettings.php that weren't aligned
This makes the generated code prettier and easier to read.
2010-07-04 22:11:14 +00:00
Tim Starling
270751a123 * Removed mockup code from WebInstallerPage::execute(), made it abstract instead.
* Updated URL for session.save_path documentation.
* Fixed documentation typo.
2010-06-30 03:36:20 +00:00
Mark A. Hershberger
04b06273c4 * remove bogus outputFooter call
* strip tags + de-code entities before outputing messages to CLI (need an un-wiki call)
* Make LocalSettings::writeLocalSettings return a Status object instead of true/false so we can use the text in out cli output.
2010-06-29 02:46:11 +00:00
Chad Horohoe
e6d3c89de0 Followup r66383, need to update generated LocalSettings as well 2010-06-08 13:38:46 +00:00
Alexandre Emsenhuber
2c12a71227 Don't escape $wgRightsIcon since it may contain "{$wgScriptPath}" 2010-05-12 20:30:01 +00:00
Chad Horohoe
a4393915e2 Merge new-installer branch to trunk
* This is not complete yet, and should not be used outside of testing. Using it on a production database may ruin everything. This is the reason for the second entry point of new-index.php. You've been warned. 
* Known issues are at [[mw:New-installer_issues]]. Please add new items to the list if you find them.
2010-05-07 12:25:01 +00:00