Aryeh Gregor [Wed, 25 Aug 2010 17:56:03 +0000 (17:56 +0000)]
Blacklist % in HTML id's
As pointed out by entlinkt at bug 24918, this could cause problems --
browsers don't interpret percent escapes in fragments consistently, so
any percent sign that might be part of an escape could be a problem.
For simplicity, just strip all of them.
Sam Reed [Wed, 25 Aug 2010 17:45:00 +0000 (17:45 +0000)]
Move insertOnDupeUpdate (and rename to insertOrUpdate) to DatabaseMysql. Add todo/fixme in insertOrUpdate in DatabaseBase
Add some braces
Sam Reed [Wed, 25 Aug 2010 15:58:58 +0000 (15:58 +0000)]
Change usages of Database:: for function names in DatabaseMssql to DatabaseMssql::
Sam Reed [Wed, 25 Aug 2010 15:38:32 +0000 (15:38 +0000)]
Braces for MaxSem
Sam Reed [Wed, 25 Aug 2010 15:26:45 +0000 (15:26 +0000)]
Followup r71593 - Spaces, I *still* hate you
Sam Reed [Wed, 25 Aug 2010 02:24:54 +0000 (02:24 +0000)]
Followup r71609 add missing $
Sam Reed [Wed, 25 Aug 2010 01:24:47 +0000 (01:24 +0000)]
Update documentation - Database:: to DatabaseBase:: considering Database:: is some legacy alias for DatabaseMySql
Sam Reed [Wed, 25 Aug 2010 01:03:43 +0000 (01:03 +0000)]
Create insertOnDupeUpdate, called by insert
Will be using soon
Sam Reed [Wed, 25 Aug 2010 00:18:47 +0000 (00:18 +0000)]
Param and return documentation for insert
Siebrand Mazeland [Tue, 24 Aug 2010 23:02:39 +0000 (23:02 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-24 22:46 UTC)
Sam Reed [Tue, 24 Aug 2010 22:44:44 +0000 (22:44 +0000)]
Whitespace, I hate you.
Sam Reed [Tue, 24 Aug 2010 22:36:11 +0000 (22:36 +0000)]
Fix those spaces too from r71596/r71592
Sam Reed [Tue, 24 Aug 2010 22:34:44 +0000 (22:34 +0000)]
Fixup whitespace from r71592
if ( !($buf == self::$png_sig) ) { to if ( $buf != self::$png_sig ) {
Add a couple of braces
Sam Reed [Tue, 24 Aug 2010 22:06:08 +0000 (22:06 +0000)]
self::DB_ADMIN to Maintenance::DB_ADMIN for constant
Sam Reed [Tue, 24 Aug 2010 22:04:49 +0000 (22:04 +0000)]
Move unreachable $this->mConn = false in DatabaseSqlite
Sam Reed [Tue, 24 Aug 2010 22:03:18 +0000 (22:03 +0000)]
Remove some unreachable code (usually returns after throwing exceptions)
Fixup call of method after return in DatabaseMssql by using a temp
Sam Reed [Tue, 24 Aug 2010 22:00:02 +0000 (22:00 +0000)]
Add missing brace to skins/simple/rtl.css
Niklas Laxström [Tue, 24 Aug 2010 20:12:15 +0000 (20:12 +0000)]
Someone made a typo in r71576
Niklas Laxström [Tue, 24 Aug 2010 19:58:55 +0000 (19:58 +0000)]
Added a hook into MWNamespace::getCanonicalNamespaces() to provide safe way to
define new namespaces in extensions.
Without the hook the list could be initialised too early and some namespaces
would be left undefined. Was causing problems at translatewiki.net.
Greg Sabino Mullane [Tue, 24 Aug 2010 17:35:03 +0000 (17:35 +0000)]
CREATE LANGUAGE belongs as part of the installer, not here.
Greg Sabino Mullane [Tue, 24 Aug 2010 17:34:42 +0000 (17:34 +0000)]
Allow both single and double quotes for ENUM values (even though we should standardize on one or the other)
Roan Kattouw [Tue, 24 Aug 2010 16:01:52 +0000 (16:01 +0000)]
Allow class="noshiftselect" to disable the multiple-select-on-shift-click behavior for checkboxes. This is desired for forms that contain tables with multiple columns of checkboxes (CentralNotice has one of these), where this function works row-wise instead of column-wise. This is confusing and I'm too lazy to implement column-wise shift-select, so I'm just disabling shift-select altogether in CentralNotice (see followup commit).
Jeroen De Dauw [Tue, 24 Aug 2010 14:58:35 +0000 (14:58 +0000)]
Follow up to r71110, use of static var instead of global var, as suggested by Platonides
Siebrand Mazeland [Tue, 24 Aug 2010 13:59:09 +0000 (13:59 +0000)]
Fix syntax error in r71555
Siebrand Mazeland [Tue, 24 Aug 2010 13:54:07 +0000 (13:54 +0000)]
Localisation updates for extensions from translatewiki.net
* update namespace names.
Siebrand Mazeland [Tue, 24 Aug 2010 13:30:06 +0000 (13:30 +0000)]
Follow up r71553: (update magic words)
Siebrand Mazeland [Tue, 24 Aug 2010 13:14:19 +0000 (13:14 +0000)]
Localisation updates for core from translatewiki.net
* update magic words.
Siebrand Mazeland [Tue, 24 Aug 2010 12:30:07 +0000 (12:30 +0000)]
Localisation updates for core from translatewiki.net
* update special page aliases.
Tim Starling [Tue, 24 Aug 2010 08:48:46 +0000 (08:48 +0000)]
Fixes for new ImageMagick:
* (bug 24824) Support ImageMagick 6.5.6-2+ JPEG decoder size hint, to reduce memory usage when such an ImageMagick is used for scaling.
* Removed -size option since it doesn't act as a JPEG decoder size hint with recent ImageMagicks, and it may cause undesired behaviour in the future since it's documented to do something different now.
* Disable multithreaded behaviour in recent ImageMagick, to avoid a deadlock when a resource limit such as $wgMaxShellMemory is hit.
* Fixed some comments.
Replaces WMF live hack.
Siebrand Mazeland [Tue, 24 Aug 2010 06:37:29 +0000 (06:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-24 06:24 UTC)
Sam Reed [Tue, 24 Aug 2010 01:31:28 +0000 (01:31 +0000)]
Update SkinAfterContent hook to pass the current skin too
So we don't need nasty $wgTitle globals
Sam Reed [Tue, 24 Aug 2010 00:56:56 +0000 (00:56 +0000)]
* (bug 24917) Polish as fallback for Kashubia
Sam Reed [Mon, 23 Aug 2010 22:52:37 +0000 (22:52 +0000)]
arrray?
Sam Reed [Mon, 23 Aug 2010 22:18:05 +0000 (22:18 +0000)]
Remove some unneeded whitespace
Platonides [Mon, 23 Aug 2010 21:54:45 +0000 (21:54 +0000)]
Try to improve the funciton comment of getETag() per r70809 CR. Adaptation of Nikerabbit proposal.
Rotem Liss [Mon, 23 Aug 2010 21:47:26 +0000 (21:47 +0000)]
Localization update for he.
Platonides [Mon, 23 Aug 2010 21:34:20 +0000 (21:34 +0000)]
LocalFileTest failed if $wgCapitalLinks was false in LocalSettings.
Platonides [Mon, 23 Aug 2010 21:33:41 +0000 (21:33 +0000)]
Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors.
Platonides [Mon, 23 Aug 2010 14:13:41 +0000 (14:13 +0000)]
Use the common code at switch end if viewing the current version of a page using the permalink.
Title related r64876 and r64934 were not applied in that case, nor were they getting their
getRobotPolicy(), like other old revisions (noindex,nofollow).
Mark A. Hershberger [Mon, 23 Aug 2010 13:45:07 +0000 (13:45 +0000)]
re r71445 put static on the right method.
Niklas Laxström [Mon, 23 Aug 2010 08:46:13 +0000 (08:46 +0000)]
Fix yet another regression in r71342: NS_MAIN was dropped from valid namespaces, breaking at least opensearch
Siebrand Mazeland [Mon, 23 Aug 2010 06:46:49 +0000 (06:46 +0000)]
Fix typo. Spotted by Hamilton Abreu.
Tim Starling [Mon, 23 Aug 2010 02:31:13 +0000 (02:31 +0000)]
Fix complete breakage of new installer due to multiple ob_flush() calls with gzip handler enabled.
Philip Tzou [Mon, 23 Aug 2010 02:07:31 +0000 (02:07 +0000)]
follow up r69134. Change all of convertLinkToAllVariants()'s callers to call autoConvertToAllVariants().
Chad Horohoe [Mon, 23 Aug 2010 01:55:16 +0000 (01:55 +0000)]
Comment adjustment
Chad Horohoe [Mon, 23 Aug 2010 01:53:31 +0000 (01:53 +0000)]
(bug 24898) MediaWiki uses /tmp even if a vHost-specific tempdir is set, also make wfTempDir() return a sane value for Windows on worst-case
Siebrand Mazeland [Sun, 22 Aug 2010 23:04:33 +0000 (23:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-22 22:34 UTC)
Chad Horohoe [Sun, 22 Aug 2010 21:52:39 +0000 (21:52 +0000)]
Followup r71441, break up messages by type, iterate over known types. Expand on info in box
Jack Phoenix [Sun, 22 Aug 2010 21:34:44 +0000 (21:34 +0000)]
coding style tweaks
Chad Horohoe [Sun, 22 Aug 2010 21:22:04 +0000 (21:22 +0000)]
Mock object needs to be static too
Jack Phoenix [Sun, 22 Aug 2010 21:14:36 +0000 (21:14 +0000)]
coding style tweaks for ajax.js
Jack Phoenix [Sun, 22 Aug 2010 21:07:43 +0000 (21:07 +0000)]
properly capitalize the word "MediaWiki"
Chad Horohoe [Sun, 22 Aug 2010 20:57:53 +0000 (20:57 +0000)]
Be consistent with all the child classes
Chad Horohoe [Sun, 22 Aug 2010 20:55:07 +0000 (20:55 +0000)]
Make getSoftwareLink() static so I can use it without instantiating (and opening) a bunch of databases I probably can't support. Can't have an abstract parent now, so throw an exception for anyone who writes a child class without bothering to implement it. All of this to add some helpful text links in an infobox in the installer :)
Chad Horohoe [Sun, 22 Aug 2010 20:06:08 +0000 (20:06 +0000)]
Kill oracle installer support until its more complete
Chad Horohoe [Sun, 22 Aug 2010 19:36:22 +0000 (19:36 +0000)]
Followup r71367, reusing messages is bad
Chad Horohoe [Sun, 22 Aug 2010 16:10:58 +0000 (16:10 +0000)]
(bug 23703) ForeignAPIRepo fails on findBySha1() when using a 1.14 install as a repository due to missing 'name' attribute from the API list=allimages
Alexandre Emsenhuber [Sun, 22 Aug 2010 15:58:59 +0000 (15:58 +0000)]
Fixed some doxygen warnings
Alexandre Emsenhuber [Sun, 22 Aug 2010 14:31:05 +0000 (14:31 +0000)]
* Added file description headers
* Added @file where needed
Alexandre Emsenhuber [Sun, 22 Aug 2010 12:02:36 +0000 (12:02 +0000)]
Some extensions like to pass an array for the callback, and method_exists() doesn't like that
Alexandre Emsenhuber [Sun, 22 Aug 2010 11:59:32 +0000 (11:59 +0000)]
Forgot to indent this correctly...
Alexandre Emsenhuber [Sun, 22 Aug 2010 11:57:31 +0000 (11:57 +0000)]
Removed some specific methods from updaters.inc that can use generic ones
Alexandre Emsenhuber [Sun, 22 Aug 2010 10:37:27 +0000 (10:37 +0000)]
* Make the MySQL updater work in the new installer
* DatabaseInstaller::doUpgrade() is now abstract
TODO: MysqlUpdater::doUpgrade() is horrible, please someone fix it once it could be
Max Semenik [Sun, 22 Aug 2010 10:07:14 +0000 (10:07 +0000)]
Release notes for r71428
Max Semenik [Sun, 22 Aug 2010 10:06:06 +0000 (10:06 +0000)]
"Difference between pages" is now displayed instead of "Difference between revisions" on diffs when appropriate. This is even more important now that we have Special:ComparePages
Alexandre Emsenhuber [Sun, 22 Aug 2010 08:32:29 +0000 (08:32 +0000)]
Oops, forgot to change this in r71426
Alexandre Emsenhuber [Sun, 22 Aug 2010 08:07:26 +0000 (08:07 +0000)]
Moved PostgreSQL schema update to PostgresUpdater:
* Still not doing sequential updates, but now this should be easier to correct
* Corrected addition of page_restrictions.pr_id field to use the correct sequence name
* Had to change DatabaseUpdater::getOldGlobalUpdates() from private to protected, since PostgreSQL has its own globals for extensions
* Moved do_all_updates() and archive() to the top of updaters.inc so that they are easier to find
Siebrand Mazeland [Sat, 21 Aug 2010 23:20:48 +0000 (23:20 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-08-21 22:44 UTC)
Platonides [Sat, 21 Aug 2010 22:34:12 +0000 (22:34 +0000)]
Remove globals, expose options in maintenance style, use the ContentLanguage for the titles.
Platonides [Sat, 21 Aug 2010 22:11:19 +0000 (22:11 +0000)]
Follow up r71359. $wgDBtype uneeded now.
Platonides [Sat, 21 Aug 2010 21:52:47 +0000 (21:52 +0000)]
Replace usage of deprecated Parser::tidy()
Platonides [Sat, 21 Aug 2010 20:47:15 +0000 (20:47 +0000)]
Follow up r71412. $wgContLang is not used.
Alexandre Emsenhuber [Sat, 21 Aug 2010 20:23:42 +0000 (20:23 +0000)]
Fix for r71140: PostgresUpdater should extend DatabaseUpdater, not Updater
Platonides [Sat, 21 Aug 2010 19:54:25 +0000 (19:54 +0000)]
Use canonical class name.
Alexandre Emsenhuber [Sat, 21 Aug 2010 18:20:09 +0000 (18:20 +0000)]
* Added file description headers
* Added @file where needed
Robin Pepermans [Sat, 21 Aug 2010 18:08:59 +0000 (18:08 +0000)]
Change language name of North Frisian (frr) from "Frasch" to "Nordfriisk", per frr.wikipedia.org/wiki/Wikipedia:Diskusjoon#Nordfriisk
Niklas Laxström [Sat, 21 Aug 2010 16:41:53 +0000 (16:41 +0000)]
Added $wgAdaptiveMessageCache to avoid caching huge pile of never used messages at twn.
Alexandre Emsenhuber [Sat, 21 Aug 2010 16:10:56 +0000 (16:10 +0000)]
Added file description headers
Niklas Laxström [Sat, 21 Aug 2010 16:04:06 +0000 (16:04 +0000)]
Revert part of r71391 that was not supposed to go yet.
Alexandre Emsenhuber [Sat, 21 Aug 2010 15:53:46 +0000 (15:53 +0000)]
@TODO @FIXME -> @todo so that doxygen recognise it correctly
Alexandre Emsenhuber [Sat, 21 Aug 2010 15:39:07 +0000 (15:39 +0000)]
Modified Special:Categories to subclass SpecialPage
Alexandre Emsenhuber [Sat, 21 Aug 2010 15:20:23 +0000 (15:20 +0000)]
Fixed some doxygen warnings
Alexandre Emsenhuber [Sat, 21 Aug 2010 14:57:08 +0000 (14:57 +0000)]
* (bug 24804) Corrected commafying in Polish and Ukrainian
Alexandre Emsenhuber [Sat, 21 Aug 2010 14:54:24 +0000 (14:54 +0000)]
break lines a 80 chars
Platonides [Sat, 21 Aug 2010 14:53:39 +0000 (14:53 +0000)]
Follow up r71289. getServerVersion() call was needed to initialise numeric_version.
In fact, we can use getServerVersion() here.
Platonides [Sat, 21 Aug 2010 14:44:25 +0000 (14:44 +0000)]
Follow up r71289. $wgContLang is now unused.
Platonides [Sat, 21 Aug 2010 14:34:16 +0000 (14:34 +0000)]
Commit local change about not using $ourdb as global.
Platonides [Sat, 21 Aug 2010 14:33:32 +0000 (14:33 +0000)]
Try to address some of the issues of r70608.
@yaauie: Set the error_level in your php.ini, do not use calls to error_reporting() for that.
Platonides [Sat, 21 Aug 2010 13:58:54 +0000 (13:58 +0000)]
wfSpecialProtectedtitles() is no longer used. Follow up r71130.
Jack Phoenix [Sat, 21 Aug 2010 12:00:28 +0000 (12:00 +0000)]
coding style tweaks
Niklas Laxström [Sat, 21 Aug 2010 08:20:21 +0000 (08:20 +0000)]
One more fix to namespace stuff. Follow-up r71342.
I don't see no reason to not to default to array() instead of null.
Niklas Laxström [Sat, 21 Aug 2010 08:17:01 +0000 (08:17 +0000)]
Too much indirection in aliases doesn't seem to work with my version of Doxygen
Niklas Laxström [Sat, 21 Aug 2010 08:15:22 +0000 (08:15 +0000)]
Mostly indentation fixes
Niklas Laxström [Sat, 21 Aug 2010 08:05:16 +0000 (08:05 +0000)]
Fix translated core namespaces broken in r71342.
The parser tests don't fail anymore (after I was able to run them in the first place)
Niklas Laxström [Sat, 21 Aug 2010 08:01:33 +0000 (08:01 +0000)]
Fix indentation
Max Semenik [Sat, 21 Aug 2010 06:36:40 +0000 (06:36 +0000)]
Fixed yet another breakage introduced by r70608: bug 24764 - broken old installer form. Next time please use a HTML validator every time you change HTML output.
Platonides [Fri, 20 Aug 2010 22:43:41 +0000 (22:43 +0000)]
Move [[MediaWiki:bad image list]] to the beginning.
This should fix the random failing bad image tests (since r70917?)
mentioned in [[Special:Code/MediaWiki/70938#c8458]].
They seem to be a mixture of conflict of messagecache and the internal
wfIsBadImage() cache. By always having the message in NS_MEDIAWIKI by
the time it is extracted, there shouldn't be more problems.
Alexandre Emsenhuber [Fri, 20 Aug 2010 21:20:18 +0000 (21:20 +0000)]
Document functions
Alexandre Emsenhuber [Fri, 20 Aug 2010 20:39:04 +0000 (20:39 +0000)]
* Standardised file description headers
* Added some descriptions
* Added @file where needed
Platonides [Fri, 20 Aug 2010 18:03:45 +0000 (18:03 +0000)]
Revert the change to Preprocessor_DOM.php of r71286.
The parsertest "Link with 3 brackets" passes again.