lhc/web/wiklou.git
13 years agoFollow up r79845. No need to keep $wgCustomConvertCommand there.
Platonides [Wed, 12 Jan 2011 00:30:42 +0000 (00:30 +0000)]
Follow up r79845. No need to keep $wgCustomConvertCommand there.

13 years agoDocument return type.
Sam Reed [Wed, 12 Jan 2011 00:29:17 +0000 (00:29 +0000)]
Document return type.

Explicit class member variable definition

13 years agoinitFromQueryResult doesn't use the $db parameter.
Sam Reed [Wed, 12 Jan 2011 00:24:25 +0000 (00:24 +0000)]
initFromQueryResult doesn't use the $db parameter.

Private method, updated callers to not pass it.

13 years agoFollow up r80025.
Platonides [Wed, 12 Jan 2011 00:11:11 +0000 (00:11 +0000)]
Follow up r80025.
The space is actually used inside extensions, such as Maps, covertly called as 'display_map' into
Validator, then converted into 'display map' by getName().

13 years agoFixed logic error - all tests were passing... :(
Trevor Parscal [Tue, 11 Jan 2011 23:15:26 +0000 (23:15 +0000)]
Fixed logic error - all tests were passing... :(

13 years agoReverts part of r80036 - jquery.client is already depended on by mediaWiki.util ...
Trevor Parscal [Tue, 11 Jan 2011 23:10:12 +0000 (23:10 +0000)]
Reverts part of r80036 - jquery.client is already depended on by mediaWiki.util - which is laoded initially as well.

13 years agoA wfProfileOut was missing (which messed up profiling sometimes). Thanks to Owen...
Sean Colombo [Tue, 11 Jan 2011 22:20:56 +0000 (22:20 +0000)]
A wfProfileOut was missing (which messed up profiling sometimes).  Thanks to Owen Davis for finding this.

13 years agoFixed logic error that caused the test to always pass.
Trevor Parscal [Tue, 11 Jan 2011 21:55:45 +0000 (21:55 +0000)]
Fixed logic error that caused the test to always pass.

13 years agoIncluded client in the initial payload. Restored functionality that used to exist...
Trevor Parscal [Tue, 11 Jan 2011 20:56:15 +0000 (20:56 +0000)]
Included client in the initial payload. Restored functionality that used to exist in this plug-in that adds classes to the document's HTML element for browser and platform information. This will help reduce CSS hacks to only be used for non-JS rendered items.

13 years agoRepair quickbar of standard and cologneblue skins to work under Resourceloader.
Derk-Jan Hartman [Tue, 11 Jan 2011 20:22:05 +0000 (20:22 +0000)]
Repair quickbar of standard and cologneblue skins to work under Resourceloader.
Refs bug #26649

Factoring this out into seperate stylesheets seemed silly. Instead just moved
that last css line from skins/common/quickbar.css and skins/common/quickbar-right.css
inline as well.

13 years agoRemove "Heldergeovane" from both PT and PT_BR message files, per request on TW
Sam Reed [Tue, 11 Jan 2011 18:57:28 +0000 (18:57 +0000)]
Remove "Heldergeovane" from both PT and PT_BR message files, per request on TW

Renamed user already exists as "Helder.wiki"

13 years agoForbid '<', '>', ' ', '\n', '\r' in parser hook names.
Platonides [Tue, 11 Jan 2011 18:38:32 +0000 (18:38 +0000)]
Forbid '<', '>', ' ', '\n', '\r' in parser hook names.
Registering a tag hook with < or > on its name resulted in a UNIQ marker.
Spaces, tabs or LF do work (CR fails due to the CR->LF transformation),
but it's easier to also forbid them, just as they are not allowed in other
markup languages.

13 years agoAdd tests for parser tag hooks.
Platonides [Tue, 11 Jan 2011 18:37:15 +0000 (18:37 +0000)]
Add tests for parser tag hooks.

13 years agoFix a few doQuery() -> query()
Chad Horohoe [Tue, 11 Jan 2011 16:02:56 +0000 (16:02 +0000)]
Fix a few doQuery() -> query()

13 years agoFix callbacks for the final time so it actually works per documentation.
Chad Horohoe [Tue, 11 Jan 2011 15:02:59 +0000 (15:02 +0000)]
Fix callbacks for the final time so it actually works per documentation.
Other minor postgres fixes

13 years agoNo space after unary minus
Niklas Laxström [Tue, 11 Jan 2011 14:30:03 +0000 (14:30 +0000)]
No space after unary minus

13 years agoSpell false with small latter
Niklas Laxström [Tue, 11 Jan 2011 14:28:35 +0000 (14:28 +0000)]
Spell false with small latter

13 years agoUse same wording as in skintemplate
Niklas Laxström [Tue, 11 Jan 2011 14:27:15 +0000 (14:27 +0000)]
Use same wording as in skintemplate

13 years agoFix copy+paste mistake from r79989
Chad Horohoe [Tue, 11 Jan 2011 14:00:47 +0000 (14:00 +0000)]
Fix copy+paste mistake from r79989

13 years agoFix callback issue noted in r79989 (broken in r78774).
Chad Horohoe [Tue, 11 Jan 2011 13:54:05 +0000 (13:54 +0000)]
Fix callback issue noted in r79989 (broken in r78774).
$this makes a difference.
I'm an idiot.

13 years agoFollowup r80003: array_unique() preserves keys, so we got module arrays that looked...
Roan Kattouw [Tue, 11 Jan 2011 13:51:49 +0000 (13:51 +0000)]
Followup r80003: array_unique() preserves keys, so we got module arrays that looked like {"0": "ext.liquidThreads", "58": "mediawiki.legacy.wikibits", "59": "mediawiki.util",  ... } . To prevent this from happening, use array_values() to reindex the arrays

13 years agorm stray tab
Niklas Laxström [Tue, 11 Jan 2011 13:46:31 +0000 (13:46 +0000)]
rm stray tab

13 years agoApply array_unique() to module lists in OutputPage, should prevent lots of duplicate...
Roan Kattouw [Tue, 11 Jan 2011 13:41:40 +0000 (13:41 +0000)]
Apply array_unique() to module lists in OutputPage, should prevent lots of duplicate 'ext.liquidThreads' elements in the module array reported by thedj

13 years agoSeems there was a logic error in r80001 :)
Alexandre Emsenhuber [Tue, 11 Jan 2011 13:08:28 +0000 (13:08 +0000)]
Seems there was a logic error in r80001 :)

13 years agoSimplify a bit:
Alexandre Emsenhuber [Tue, 11 Jan 2011 13:04:55 +0000 (13:04 +0000)]
Simplify a bit:
* replaced calls to Article::getLatest() by Title::getLatestRevID()
* introduced Skin::isRevisionCurrent()
* made checks on Skin::pageStats() more coherent

13 years agoFollow-up r79964: Use the existing message 'parentheses' instead of introducing an...
Raimond Spekking [Tue, 11 Jan 2011 07:37:42 +0000 (07:37 +0000)]
Follow-up r79964: Use the existing message 'parentheses' instead of introducing an identical one.

13 years agoI have no clue how the callbacks work, this at least sets up a database, everything...
OverlordQ [Tue, 11 Jan 2011 03:07:45 +0000 (03:07 +0000)]
I have no clue how the callbacks work, this at least sets up a database, everything after that is fubar

13 years agoParent in DatabaseInstaller is a CoreInstaller, not just an Installer
Sam Reed [Tue, 11 Jan 2011 02:46:55 +0000 (02:46 +0000)]
Parent in DatabaseInstaller is a CoreInstaller, not just an Installer

13 years agoNew test database resource file with some test configuration changes for it. Follow...
Priyanka Dhanda [Tue, 11 Jan 2011 01:01:54 +0000 (01:01 +0000)]
New test database resource file with some test configuration changes for it. Follow up to r79421 and r79982

13 years agoFixup some of the ordering of API Autoloader stuff
Sam Reed [Tue, 11 Jan 2011 00:55:20 +0000 (00:55 +0000)]
Fixup some of the ordering of API Autoloader stuff

$reedy->ocd++;

13 years agoFollow up to #79421. Cleaned up some globals and some typos. Going to follow up with...
Priyanka Dhanda [Tue, 11 Jan 2011 00:36:36 +0000 (00:36 +0000)]
Follow up to #79421. Cleaned up some globals and some typos. Going to follow up with some actual test changes

13 years agoNormalise casing of svn:keywords Id
Sam Reed [Mon, 10 Jan 2011 22:36:26 +0000 (22:36 +0000)]
Normalise casing of svn:keywords Id

Add missing Id to ApiFormatDump and ApiUpload

13 years agoMove the () surrounding description strings of files, out of the description and...
Derk-Jan Hartman [Mon, 10 Jan 2011 22:18:08 +0000 (22:18 +0000)]
Move the () surrounding description strings of files, out of the description and into the interface.

Follows up r68324 and r68325

13 years agoExplicitally add ApiFormatXmlRsd to the AutoLoader
Sam Reed [Mon, 10 Jan 2011 22:13:01 +0000 (22:13 +0000)]
Explicitally add ApiFormatXmlRsd to the AutoLoader

13 years agoResolves bug #26655 - adds support for space before and after the URL inside the...
Trevor Parscal [Mon, 10 Jan 2011 21:31:12 +0000 (21:31 +0000)]
Resolves bug #26655 - adds support for space before and after the URL inside the parenthesis of a url() statement in CSS.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 10 Jan 2011 21:09:58 +0000 (21:09 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-10 20:56:00 UTC)

13 years agoFollow-up r79915: Add new section in maintenance file too
Raimond Spekking [Mon, 10 Jan 2011 20:54:49 +0000 (20:54 +0000)]
Follow-up r79915: Add new section in maintenance file too

13 years ago* fixed oracle code for updater (corrected not null BLOB field adding)
Jure Kajzer [Mon, 10 Jan 2011 20:11:43 +0000 (20:11 +0000)]
* fixed oracle code for updater (corrected not null BLOB field adding)
* added required DB vars in WebInstaller_ExistingWiki
* oracle upgrades normally 1.16=>1.17

13 years agoFix RFC 5322 'atext'
Antoine Musso [Mon, 10 Jan 2011 19:55:30 +0000 (19:55 +0000)]
Fix RFC 5322 'atext'

An additional character was introducted in the RFC 5322 atext fragment.
Spotted with r79924 which send the file as latin1 encoding.

13 years ago* fixed Oracle code for installer and phpunit tests
Jure Kajzer [Mon, 10 Jan 2011 19:22:27 +0000 (19:22 +0000)]
* fixed Oracle code for installer and phpunit tests
* removed ORABlob class

13 years agoMore postgres
Chad Horohoe [Mon, 10 Jan 2011 19:18:28 +0000 (19:18 +0000)]
More postgres
* Add user creation form like MySQL
* Fix canCreateAccounts() check
* Fix ts2 setup callback
* Still needs schema creation and other misc. stuff from lines ~370-530 of DatabasePostgres

13 years agoMore silly whitespace
Chad Horohoe [Mon, 10 Jan 2011 18:43:59 +0000 (18:43 +0000)]
More silly whitespace

13 years agorm big whitespace
Chad Horohoe [Mon, 10 Jan 2011 18:41:31 +0000 (18:41 +0000)]
rm big whitespace

13 years agoMove table prefixes to constants, add doc to addDBData()
Chad Horohoe [Mon, 10 Jan 2011 18:34:59 +0000 (18:34 +0000)]
Move table prefixes to constants, add doc to addDBData()

13 years ago* (bug 26650) Remove $wgAPICacheHelp in favour of $wgAPICacheHelpTimeout
Sam Reed [Mon, 10 Jan 2011 18:08:54 +0000 (18:08 +0000)]
* (bug 26650) Remove $wgAPICacheHelp in favour of $wgAPICacheHelpTimeout

13 years agoBe sure to use the latest rev id and not whatever getRevIdFetched() could be
Alexandre Emsenhuber [Mon, 10 Jan 2011 08:33:19 +0000 (08:33 +0000)]
Be sure to use the latest rev id and not whatever getRevIdFetched() could be

13 years agoRemoving unneeded wraps and using $ and mw instead of jQuery or mediaWiki since r7924...
Krinkle [Mon, 10 Jan 2011 05:33:03 +0000 (05:33 +0000)]
Removing unneeded wraps and using $ and mw instead of jQuery or mediaWiki since r79246 enabled the private scope by default. No need for two wraps.
(the wraps had an extra indention, hence the diff will probably look huge)

13 years agoAdding comma's at end of arrays where this hasn't been done already for consistency
Krinkle [Mon, 10 Jan 2011 05:02:05 +0000 (05:02 +0000)]
Adding comma's at end of arrays where this hasn't been done already for consistency

13 years agotraversal indention. Follow-up r79924
Krinkle [Mon, 10 Jan 2011 04:47:38 +0000 (04:47 +0000)]
traversal indention. Follow-up r79924

13 years agoDocumentation addition/tweaks
Sam Reed [Mon, 10 Jan 2011 04:44:33 +0000 (04:44 +0000)]
Documentation addition/tweaks

13 years ago* Consistent single quotes
Krinkle [Mon, 10 Jan 2011 04:40:57 +0000 (04:40 +0000)]
* Consistent single quotes
* The problem with onKeyUp was that is shows errors even when initially typing a (possibly valid) address. onBlur has the downside of not giving feedback while correcting the mistake + since e-mail is the last input element at the moment, it doesn't blur on submit and required a seperate event handler.
** Solution: Bind onBlur once, and then listen for onKeyUp.
* Adding missing semicolon(s)
* Compare with strict (===) to empty string / null
* Moved non-global wfFunction to mw.util
** The "FIXME:" note was kept
* Comment "apostrophe" fixed to "at". Comments don't run :)
* Caching selector in wfUpdateMailValidityLabel
* Renaming "wfUpdateMailValidityLabel" to "updateMailValidityLabel"
( Ping r79910, r75670, r75627  )

13 years agoFollowup r68325, with comment describing intent of code.
Derk-Jan Hartman [Sun, 9 Jan 2011 22:54:51 +0000 (22:54 +0000)]
Followup r68325, with comment describing intent of code.

13 years agoCorrect {,in}valid js messages in UserPreferences
Antoine Musso [Sun, 9 Jan 2011 20:30:31 +0000 (20:30 +0000)]
Correct {,in}valid js messages in UserPreferences
Add them to messages.inc

Thanks Roan and ^demon for the translation.

FU r79904

13 years agoAdd a .tld to emails when testing for white space before/after.
Antoine Musso [Sun, 9 Jan 2011 19:06:02 +0000 (19:06 +0000)]
Add a .tld to emails when testing for white space before/after.

This might avoid confusion when testing. Currently, an email without
a tld is invalid (ex user@host).  The assertions could have been
invalid just by the lack of tld, not the spaces!

13 years agojs email validation improvment (onBlur)
Antoine Musso [Sun, 9 Jan 2011 18:36:05 +0000 (18:36 +0000)]
js email validation improvment (onBlur)

commit log more or less follow the diff order:
* adds an id to the UserPreferences form (#mw-prefs-form)
* Add an handler on the form submission to validate the email. This also
  update the label and, when email is invalid, get focus on the field.
* use onBlur javascript event instead of onKeyUp (per r75670 CR)
* Label update is now a function ... (wfUpdateMailValidityLabel)
* ... let us update the label on form submission
* Clear the label message when email is empty (null)
* Made the js regexp to stop capturing
* Fix js email validation function to return a boolean
  (it still return 'null' when given an empty email address)

13 years agoPartial revert of r79903, unstubbing needs localisation cache which might need database
Niklas Laxström [Sun, 9 Jan 2011 18:31:52 +0000 (18:31 +0000)]
Partial revert of r79903, unstubbing needs localisation cache which might need database

13 years agoFix for r79874: only set $mRevIdFetched from fetchContent(), it was overriden by...
Alexandre Emsenhuber [Sun, 9 Jan 2011 17:41:42 +0000 (17:41 +0000)]
Fix for r79874: only set $mRevIdFetched from fetchContent(), it was overriden by the loadLastEdit() call in getRevIdFetched() for old versions which caused it to be always the latest rev id

13 years agojs email validation fixed + i18n support
Antoine Musso [Sun, 9 Jan 2011 17:09:16 +0000 (17:09 +0000)]
js email validation fixed + i18n support

The Javascript email validation in User:Preference got broken by an id change,
this patch fix the issue.

A long standing issue was a lack of proper i18n support, message helper
was hard coded in the js file.  It now use the resourceloader to get the
i18nized message.

Follow up r75670

13 years agoFollow-up r79880: check if $wgLang can be used.
Niklas Laxström [Sun, 9 Jan 2011 17:08:40 +0000 (17:08 +0000)]
Follow-up r79880: check if $wgLang can be used.
Changed the checks in Database.php to use is_object because of stub objects

13 years agoFix bug in ResourceLoader causing LTR->RTL flipping to only be applied to the first...
Roan Kattouw [Sun, 9 Jan 2011 16:24:09 +0000 (16:24 +0000)]
Fix bug in ResourceLoader causing LTR->RTL flipping to only be applied to the first CSS file of every module. Thanks to thedj for reporting and investigating this bug and to Nikerabbit for finding the culprit (bad use of array_map)

13 years ago* (bug 26208) Mark directionality of some interlanguage links
Niklas Laxström [Sun, 9 Jan 2011 13:10:56 +0000 (13:10 +0000)]
* (bug 26208) Mark directionality of some interlanguage links

13 years agoBug 25010 - Bashkir-language interwikis: linktext change from Башҡорт to Башҡортса
Niklas Laxström [Sun, 9 Jan 2011 12:56:04 +0000 (12:56 +0000)]
Bug 25010 - Bashkir-language interwikis: linktext change from Башҡорт to Башҡортса

13 years agoAvoid dot bloat in paths
Roan Kattouw [Sun, 9 Jan 2011 12:48:30 +0000 (12:48 +0000)]
Avoid dot bloat in paths

13 years ago* (bug 25506) Exception is thrown if OutputPage::parse is called inside a tag hook...
Niklas Laxström [Sun, 9 Jan 2011 12:46:40 +0000 (12:46 +0000)]
* (bug 25506) Exception is thrown if OutputPage::parse is called inside a tag hook, which would reset parser state

13 years agoFollowup r78924: keep track of exception/warning comments separately, to prevent...
Roan Kattouw [Sun, 9 Jan 2011 12:29:02 +0000 (12:29 +0000)]
Followup r78924: keep track of exception/warning comments separately, to prevent them from being eaten by the minifier. This also prevents filter cache pollution. Additionally, uncomment some wrongfully commented-out code introduced in r78924, and add newlines after exception/warning comments

13 years agoFix syntax terror from r79884
Niklas Laxström [Sun, 9 Jan 2011 12:23:41 +0000 (12:23 +0000)]
Fix syntax terror from r79884

13 years ago* (bug 25708) Update case mappings and normalization to Unicode 6.0.0
Niklas Laxström [Sun, 9 Jan 2011 12:04:28 +0000 (12:04 +0000)]
* (bug 25708) Update case mappings and normalization to Unicode 6.0.0

13 years agoKill Article::$mCurID, not set anywhere, not used anywhere (including extensions)
Alexandre Emsenhuber [Sun, 9 Jan 2011 12:01:58 +0000 (12:01 +0000)]
Kill Article::$mCurID, not set anywhere, not used anywhere (including extensions)

13 years agoFix typo from r79874
Alexandre Emsenhuber [Sun, 9 Jan 2011 11:48:10 +0000 (11:48 +0000)]
Fix typo from r79874

13 years agoChanged to calls to Article::getContent() to Article::getRawText():
Alexandre Emsenhuber [Sun, 9 Jan 2011 11:46:15 +0000 (11:46 +0000)]
Changed to calls to Article::getContent() to Article::getRawText():
- in Article::insertRedirect(): if this will be saved in the redirect table, it should only be checked with the current text (in fact this is never called when viewing an old revision, but just in case someone breaks this)
- in Article::prepareTextForEdit(): as for Article::doEdit() this should be actual page's contents

13 years agoAdd a hook for registering variables in ResourceLoaderStartUpModule::getConfig()...
Roan Kattouw [Sun, 9 Jan 2011 11:44:52 +0000 (11:44 +0000)]
Add a hook for registering variables in ResourceLoaderStartUpModule::getConfig() to complement MakeGlobalVariablesScript

13 years ago* (bug 26187) Confirmrecreate no longer parses the edit summary
Niklas Laxström [Sun, 9 Jan 2011 11:30:36 +0000 (11:30 +0000)]
* (bug 26187) Confirmrecreate no longer parses the edit summary

13 years agoHorrible tabsoup converted to spaces
Niklas Laxström [Sun, 9 Jan 2011 11:12:06 +0000 (11:12 +0000)]
Horrible tabsoup converted to spaces

13 years agoFix encoding
Niklas Laxström [Sun, 9 Jan 2011 10:56:46 +0000 (10:56 +0000)]
Fix encoding

13 years agoThe actual error is always in English, so wrap it in ltr element
Niklas Laxström [Sun, 9 Jan 2011 10:50:42 +0000 (10:50 +0000)]
The actual error is always in English, so wrap it in ltr element

13 years ago* (bug 26638) Database error pages display correctly in RTL languages
Niklas Laxström [Sun, 9 Jan 2011 10:36:13 +0000 (10:36 +0000)]
* (bug 26638) Database error pages display correctly in RTL languages

13 years agoFollowup to r79856: s/0.4/0.5/ and added "bytes" attribute to "text" element
Rob Lanphier [Sun, 9 Jan 2011 02:38:04 +0000 (02:38 +0000)]
Followup to r79856: s/0.4/0.5/ and added "bytes" attribute to "text" element

13 years agoCreating export-0.5.xsd as part of followup to r79856
Rob Lanphier [Sun, 9 Jan 2011 02:27:56 +0000 (02:27 +0000)]
Creating export-0.5.xsd as part of followup to r79856

13 years agoMade it so that our existing 0.4 exports validate
Rob Lanphier [Sun, 9 Jan 2011 02:12:35 +0000 (02:12 +0000)]
Made it so that our existing 0.4 exports validate

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 8 Jan 2011 20:42:59 +0000 (20:42 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-09 20:27:00 UTC)

13 years agoOnly set $mUser, $mUserText, $mComment and $mTimestamp fields in fetchContent() if...
Alexandre Emsenhuber [Sat, 8 Jan 2011 20:07:18 +0000 (20:07 +0000)]
Only set $mUser, $mUserText, $mComment and $mTimestamp fields in fetchContent() if we have loaded the latests revision

13 years agoAdded QuickTemplate::getSkin(), useful for extensions when executing hooks passing...
Alexandre Emsenhuber [Sat, 8 Jan 2011 19:42:24 +0000 (19:42 +0000)]
Added QuickTemplate::getSkin(), useful for extensions when executing hooks passing only the template as parameter

13 years agoFix for r33432: isArticle() is to check if the content displayed is the one of the...
Alexandre Emsenhuber [Sat, 8 Jan 2011 19:21:37 +0000 (19:21 +0000)]
Fix for r33432: isArticle() is to check if the content displayed is the one of the article, isArticleRelated() is more appropriate here

13 years agoFollow-up r79868
Krinkle [Sat, 8 Jan 2011 17:14:39 +0000 (17:14 +0000)]
Follow-up r79868

13 years agoClean up mediawiki.special.upload.js
Krinkle [Sat, 8 Jan 2011 16:43:25 +0000 (16:43 +0000)]
Clean up mediawiki.special.upload.js
* (Whitespace) conventions [[Manual:Coding conventions]]
* Single quotes where possible
* Removing useless parens in some cases
* Missing semicolons (JSLint)
(Kindafollowupon r79867)

13 years agoFollow-up r79845: Add rotation support to the upload preview using the <canvas> eleme...
Bryan Tong Minh [Sat, 8 Jan 2011 16:24:11 +0000 (16:24 +0000)]
Follow-up r79845: Add rotation support to the upload preview using the <canvas> element. The actual rotation angle still needs to be extracted from the file using a library such as jsjpegmeta <benno.id.au/jpegmetaexample/jpegmeta.js>

13 years ago(bug 26620) JavaScript error in insertTags() when jQuery is present but currentFocuse...
Roan Kattouw [Sat, 8 Jan 2011 16:06:06 +0000 (16:06 +0000)]
(bug 26620) JavaScript error in insertTags() when jQuery is present but currentFocused is not set (e.g. on Special:Upload)

13 years agoFollowup r74298: add ORDER BY wl_namespace, wl_title to the query in WatchlistEditor...
Roan Kattouw [Sat, 8 Jan 2011 16:01:31 +0000 (16:01 +0000)]
Followup r74298: add ORDER BY wl_namespace, wl_title to the query in WatchlistEditor.php , rather than conditionally adding an ORDER BY that only seems to play nice on Postgres

13 years agoPer r79581 CR, add @embed comments to jQuery UI's default theme's CSS too, and combin...
Roan Kattouw [Sat, 8 Jan 2011 15:54:41 +0000 (15:54 +0000)]
Per r79581 CR, add @embed comments to jQuery UI's default theme's CSS too, and combine a few background rules to prevent duplicate embedding.

13 years agoAttempt at fixing bug 26370, which seems to be an infinite loop caused by ob_get_leve...
Roan Kattouw [Sat, 8 Jan 2011 15:41:55 +0000 (15:41 +0000)]
Attempt at fixing bug 26370, which seems to be an infinite loop caused by ob_get_level() never going all the way down to 0 no matter how many output buffers we destroy. Use a for loop instead

13 years agoNo longer correct
Alexandre Emsenhuber [Sat, 8 Jan 2011 14:19:53 +0000 (14:19 +0000)]
No longer correct

13 years agoRemoves $wgSecureLoginStickHTTPS which was never really used
Antoine Musso [Sat, 8 Jan 2011 13:06:17 +0000 (13:06 +0000)]
Removes $wgSecureLoginStickHTTPS which was never really used

Follow up r75585

13 years agoFollow-up r79845: add function documentation; only call wfMakeDirsParent if we have...
Bryan Tong Minh [Sat, 8 Jan 2011 11:49:09 +0000 (11:49 +0000)]
Follow-up r79845: add function documentation; only call wfMakeDirsParent if we have a dest path.

On r79845 I submitted a wrong commit summary, here is it for reference:

(bug 6672) Images are now autorotated according to their EXIF orientation. Following the Flickr example, this only affects thumbnails, with the source unrotated.

* Introduced BitmapHandler::canRotate() and BitmapHandler::getRotation() to check if rotation is supported and what the amount of rotation is
* Factored out scaler determination into BitmapHandler::getScalerType()
* ImageMagick uses the -auto-orientation option
* GD uses imagerotate()
* Unconditionally show the thumb size on the image page, don't know why this wasn't shown for SVGs etc.

13 years agoBug 26563: Add bytes changed per revision for stub and full article dumps
Rob Lanphier [Sat, 8 Jan 2011 03:11:06 +0000 (03:11 +0000)]
Bug 26563: Add bytes changed per revision for stub and full article dumps

13 years agoFix & additions for strtr vs str_replace benchmarks (for bug 26605 discussion)
Brion Vibber [Sat, 8 Jan 2011 01:10:42 +0000 (01:10 +0000)]
Fix & additions for strtr vs str_replace benchmarks (for bug 26605 discussion)

The strtr function in the benchmark was slightly artificially accelerated by replacing '_' with '' (empty) instead of ' ' (space), making the output string shorter and thus processing faster. This is now fixed, which makes the results slightly closer.
I also added 'indirect' functions to the benchmark, which instead of calling strtr/str_replace directly, call a global function which then calls them (equivalent to what we'd do if we turned the replaces into wf* global functions)

strtr() does appear to be slightly faster than str_replace() for this workload, but it's fairly modest and approximately the same as the overhead of a function call.

Results on my test box (MacBook Pro, 2.4GHz Core 2 Duo, Mac OS X 10.6.6, 64-bit PHP 5.3.4 built via MacPorts) with 10,000 reps:

$ php bench_strtr_str_replace.php --count=10000
10000 times: function bench_strtr_str_replace->benchstrtr() :
    19.67ms (  0.00ms each)
10000 times: function bench_strtr_str_replace->benchstr_replace() :
    22.05ms (  0.00ms each)
10000 times: function bench_strtr_str_replace->benchstrtr_indirect() :
    22.53ms (  0.00ms each)
10000 times: function bench_strtr_str_replace->benchstr_replace_indirect() :
    26.29ms (  0.00ms each)

13 years agoFollow up r79848. Fix the syntax error.
Platonides [Sat, 8 Jan 2011 00:46:45 +0000 (00:46 +0000)]
Follow up r79848. Fix the syntax error.

13 years ago* (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed...
Brion Vibber [Fri, 7 Jan 2011 23:52:19 +0000 (23:52 +0000)]
* (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed if namespace was set but no prefix given

13 years agoRm code that has been commented out for almost 6 years
Chad Horohoe [Fri, 7 Jan 2011 22:41:24 +0000 (22:41 +0000)]
Rm code that has been commented out for almost 6 years

13 years agoAdd DatabaseBase::classFromType() to reduce the 'Database' . $type duplication
Chad Horohoe [Fri, 7 Jan 2011 22:32:52 +0000 (22:32 +0000)]
Add DatabaseBase::classFromType() to reduce the 'Database' . $type duplication

13 years agoFollow-up r79713: add authors to README as well
Bryan Tong Minh [Fri, 7 Jan 2011 22:13:14 +0000 (22:13 +0000)]
Follow-up r79713: add authors to README as well