lhc/web/wiklou.git
12 years agoRemove the kok-* codes got added unintentionally in r102891.
Santhosh Thottingal [Mon, 14 Nov 2011 09:15:32 +0000 (09:15 +0000)]
Remove the kok-* codes got added unintentionally in r102891.

12 years ago(bug 29854) Store protocol-relative links twice in the externallinks table, one with...
Roan Kattouw [Mon, 14 Nov 2011 09:13:58 +0000 (09:13 +0000)]
(bug 29854) Store protocol-relative links twice in the externallinks table, one with http: in el_index and once with https: . Modified patch by Brad Jorsch

12 years agoFollowup r101149: make FauxRequest::__construct() use $_SESSION if the session parame...
Roan Kattouw [Mon, 14 Nov 2011 08:40:06 +0000 (08:40 +0000)]
Followup r101149: make FauxRequest::__construct() use $_SESSION if the session parameter isn't given

12 years ago(bug 32241) WikiEditor scrolls the browser and does not insert in IE7, IE8, IE9 if...
Roan Kattouw [Mon, 14 Nov 2011 08:37:38 +0000 (08:37 +0000)]
(bug 32241) WikiEditor scrolls the browser and does not insert in IE7, IE8, IE9 if the textarea doesn't fit on the screen. Patch by Lupo

12 years ago(bug 26909) Add dir parameter for prop= API modules. Modified patch by Umherirrender
Roan Kattouw [Mon, 14 Nov 2011 08:19:55 +0000 (08:19 +0000)]
(bug 26909) Add dir parameter for prop= API modules. Modified patch by Umherirrender

12 years ago(bug 32380) Make get powered by link target protocol-relative
Roan Kattouw [Mon, 14 Nov 2011 08:06:41 +0000 (08:06 +0000)]
(bug 32380) Make get powered by link target protocol-relative

12 years agoBug 32379 - DatabaseError.php is hardcoding http
Sam Reed [Sun, 13 Nov 2011 21:42:57 +0000 (21:42 +0000)]
Bug 32379 - DatabaseError.php is hardcoding http

Also tidy up a couple of returns (per others in method, and/or parents)

12 years agoFixup for r102875 parse error.
Platonides [Sun, 13 Nov 2011 19:58:24 +0000 (19:58 +0000)]
Fixup for r102875 parse error.
The post-commit hook is *again* not working...

12 years agoPer Nikerabbit, follow-up r102187: added RELEASE-NOTES entry about the fact that...
Alexandre Emsenhuber [Sun, 13 Nov 2011 14:11:08 +0000 (14:11 +0000)]
Per Nikerabbit, follow-up r102187: added RELEASE-NOTES entry about the fact that getUserPermissionsErrors and getUserPermissionsErrorsExpensive hooks are now called when checking for 'read' permission

12 years agoCorrect the name of Sanskrit. Follow-up 102889.
Santhosh Thottingal [Sun, 13 Nov 2011 12:50:20 +0000 (12:50 +0000)]
Correct the name of Sanskrit. Follow-up 102889.

12 years agoLocalise numbers in TOC added in r102334
Robin Pepermans [Sun, 13 Nov 2011 12:46:53 +0000 (12:46 +0000)]
Localise numbers in TOC added in r102334

12 years agoOops, missed to notice the missed <?php. Reverting.
Santhosh Thottingal [Sun, 13 Nov 2011 12:41:33 +0000 (12:41 +0000)]
Oops, missed to notice the missed <?php. Reverting.

12 years agoRemoved transaction in saveOptions(). No reason was given for it and it could break...
Aaron Schulz [Sun, 13 Nov 2011 12:35:28 +0000 (12:35 +0000)]
Removed transaction in saveOptions(). No reason was given for it and it could break any callers that have transactions.

12 years agoCorrect the name of Sanskrit Language.
Santhosh Thottingal [Sun, 13 Nov 2011 12:22:10 +0000 (12:22 +0000)]
Correct the name of Sanskrit Language.
Bug 32393

12 years agoAdded rollback-related comment to nextSequenceValue()
Aaron Schulz [Sun, 13 Nov 2011 11:28:56 +0000 (11:28 +0000)]
Added rollback-related comment to nextSequenceValue()

12 years agoRefactored EditPage::getPreloadedText():
Alexandre Emsenhuber [Sun, 13 Nov 2011 09:12:03 +0000 (09:12 +0000)]
Refactored EditPage::getPreloadedText():
* Use WikiPage instead of Article (avoids conflicting with oldid url parameter)
* Use getRedirectTarget() instead of creating a new Title with the content of the page
* Changed userCanRead() calls to userCan( 'read' )
* Use "if ( something ) return;" instead of nesting if checks

12 years agoAddress comments in r97628
Niklas Laxström [Sun, 13 Nov 2011 08:58:38 +0000 (08:58 +0000)]
Address comments in r97628

12 years agoRemoved usage of $wgUser in block and unblock processing:
Alexandre Emsenhuber [Sun, 13 Nov 2011 07:25:56 +0000 (07:25 +0000)]
Removed usage of $wgUser in block and unblock processing:
* Made HTMLFormField pass the HTMLForm object to the validation and filter callbacks (so that they can get a context)
* Added new parameter to SpecialBlock::checkUnblockSelf() to pass the user doing the request
* SpecialBlock::processForm() and SpecialUnblock::processUnblock() now require a context as second parameter; added SpecialBlock::processUIForm() and SpecialUnblock::processUIUnblock() as adaptators from HTMLForm as second parameter to context

12 years agoThis patch fixes rev. 102575.
Diederik van Liere [Sun, 13 Nov 2011 01:50:24 +0000 (01:50 +0000)]
This patch fixes rev. 102575.

12 years agoDocument $wgGroupPermissions better, including per-NS stuff
Aaron Schulz [Sat, 12 Nov 2011 22:36:47 +0000 (22:36 +0000)]
Document $wgGroupPermissions better, including per-NS stuff

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 12 Nov 2011 21:52:22 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoComment tweak on MediaWikiParserTest and make ResourceLoaderTest extend MediaWikiTestCase
Chad Horohoe [Sat, 12 Nov 2011 21:32:39 +0000 (21:32 +0000)]
Comment tweak on MediaWikiParserTest and make ResourceLoaderTest extend MediaWikiTestCase

12 years agoMoved methods around to group them by functionnality
Alexandre Emsenhuber [Sat, 12 Nov 2011 13:47:17 +0000 (13:47 +0000)]
Moved methods around to group them by functionnality

12 years agoPer Nikerabbit, fix undefined variable notice from r102851
Alexandre Emsenhuber [Sat, 12 Nov 2011 12:13:08 +0000 (12:13 +0000)]
Per Nikerabbit, fix undefined variable notice from r102851

12 years ago* Renamed member variables to begin with a lower case
Alexandre Emsenhuber [Sat, 12 Nov 2011 09:57:47 +0000 (09:57 +0000)]
* Renamed member variables to begin with a lower case
* Moved constant definitions from the constructor to the class definition
* Removed default values from the class definition for members that are always set in the constructor

12 years agoAllow extensions to add post-update maintenance scripts
Roan Kattouw [Sat, 12 Nov 2011 09:55:28 +0000 (09:55 +0000)]
Allow extensions to add post-update maintenance scripts

12 years agoUse WikiPage instead of Article
Alexandre Emsenhuber [Sat, 12 Nov 2011 07:36:41 +0000 (07:36 +0000)]
Use WikiPage instead of Article

12 years agoUse the local user to get time offset and format, also removed wfTimestamp() call...
Alexandre Emsenhuber [Sat, 12 Nov 2011 07:30:25 +0000 (07:30 +0000)]
Use the local user to get time offset and format, also removed wfTimestamp() call since this is already done in the function

12 years agoFU r102073:
Aaron Schulz [Fri, 11 Nov 2011 22:14:21 +0000 (22:14 +0000)]
FU r102073:
* (bug 32367) Fixed SpecialMovePage to not call wfLocalFile() on a non file title and expect an actual File back. Previously "worked" due to an old file title checking loophole (File objects with non File: titles).
* Use File::normalizeTitle() in some more functions that were still doing their own incomplete normalization.
* Updated FileRepo::newFile() docs to reflect that it can return null; wfLocalFile() docs already mentioned this.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 11 Nov 2011 20:38:26 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoMake commafy support negative numbers too,
Santhosh Thottingal [Fri, 11 Nov 2011 17:23:12 +0000 (17:23 +0000)]
Make commafy support negative numbers too,
Add test cases.
Ref Bug 32359  and Followup r97793

12 years agoSame for the getPostDatabaseUpdateMaintenance
Sam Reed [Fri, 11 Nov 2011 17:06:03 +0000 (17:06 +0000)]
Same for the getPostDatabaseUpdateMaintenance

We only need to run them once

12 years agoFollowup r102799, unconditionally running them anyway also isn't much use
Sam Reed [Fri, 11 Nov 2011 16:58:09 +0000 (16:58 +0000)]
Followup r102799, unconditionally running them anyway also isn't much use

12 years agoNaff all point varying on $this->updateRowExists when we never bloody insert to that...
Sam Reed [Fri, 11 Nov 2011 16:47:48 +0000 (16:47 +0000)]
Naff all point varying on $this->updateRowExists when we never bloody insert to that database (more of these to come as I cleanup the updater)

12 years agoFollowup r102785, fix wrong index order in tables.sql. The patches are fine
Roan Kattouw [Fri, 11 Nov 2011 16:37:38 +0000 (16:37 +0000)]
Followup r102785, fix wrong index order in tables.sql. The patches are fine

12 years agoDon't pass the count parameter in rawParams() otherwise {{PLURAL:}} won't work (spott...
Alexandre Emsenhuber [Fri, 11 Nov 2011 16:09:34 +0000 (16:09 +0000)]
Don't pass the count parameter in rawParams() otherwise {{PLURAL:}} won't work (spotted while looking at r102794 but not related to that rev)

12 years ago(bug 32358) Do not display "No higher resolution available" if the file doesn't have...
Brian Wolff [Fri, 11 Nov 2011 15:59:40 +0000 (15:59 +0000)]
(bug 32358) Do not display "No higher resolution available" if the file doesn't have dimensions (like an audio file)

12 years agoReordered some functions for more consistency: setOldSubtitle() near other view-relat...
Alexandre Emsenhuber [Fri, 11 Nov 2011 15:58:17 +0000 (15:58 +0000)]
Reordered some functions for more consistency: setOldSubtitle() near other view-related functions and deprecated functions to the bottom

12 years agoFollow-up r102751 - I think this test was intermitently failing because it was re...
Brian Wolff [Fri, 11 Nov 2011 15:33:37 +0000 (15:33 +0000)]
Follow-up r102751 - I think this test was intermitently failing because it was re-using thumbs generated for previous tests. Add a random number to stop that.

12 years ago* applyed the patch from bug 26393 (please comment on the bug page)
Jure Kajzer [Fri, 11 Nov 2011 14:28:44 +0000 (14:28 +0000)]
* applyed the patch from bug 26393 (please comment on the bug page)

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 13:20:56 +0000 (13:20 +0000)]
Localisation updates from translatewiki.net.

12 years agoRemove trailing newline in 'config-db-host-help'.
Siebrand Mazeland [Fri, 11 Nov 2011 12:25:58 +0000 (12:25 +0000)]
Remove trailing newline in 'config-db-host-help'.

12 years agoLocalisation updates. Add Canadian English, by popular demand.
Siebrand Mazeland [Fri, 11 Nov 2011 12:24:29 +0000 (12:24 +0000)]
Localisation updates. Add Canadian English, by popular demand.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 11:05:12 +0000 (11:05 +0000)]
Localisation updates from translatewiki.net.

Protocol relative URL updates in mainpagedocfooter translations (updated with bot) following up r102767.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 10:43:32 +0000 (10:43 +0000)]
Localisation updates from translatewiki.net.

Mostly protocol relative URL updates in translations (updated with bot) following up r102767, r102749.

12 years agoFollow-up 102749: more protocol relative URLs.
Siebrand Mazeland [Fri, 11 Nov 2011 10:39:30 +0000 (10:39 +0000)]
Follow-up 102749: more protocol relative URLs.

12 years ago(follow-up r99910) Make $wgEnableAutoRotation work...
Brian Wolff [Fri, 11 Nov 2011 04:09:05 +0000 (04:09 +0000)]
(follow-up r99910) Make $wgEnableAutoRotation work...

Also unit-tests. There's a bit of duplication in the unit tests, and I wasn't sure if there was a better way with less duplication.

12 years agoUpdate xcache url since the old url redirects to the lighttpd redmine homepage instea...
Daniel Friesen [Fri, 11 Nov 2011 03:40:13 +0000 (03:40 +0000)]
Update xcache url since the old url redirects to the lighttpd redmine homepage instead of anything related to xcache.

12 years agoUpdate Installer i18n to use some protocol relative urls.
Daniel Friesen [Fri, 11 Nov 2011 03:35:18 +0000 (03:35 +0000)]
Update Installer i18n to use some protocol relative urls.

12 years agoFollowup r102744 update parser tests.
Daniel Friesen [Fri, 11 Nov 2011 03:30:17 +0000 (03:30 +0000)]
Followup r102744 update parser tests.

12 years agoSwitch some urls inside en to protocol relative.
Daniel Friesen [Fri, 11 Nov 2011 03:20:45 +0000 (03:20 +0000)]
Switch some urls inside en to protocol relative.

12 years ago[Resources.php] Must. Have. Order.
Krinkle [Fri, 11 Nov 2011 00:17:38 +0000 (00:17 +0000)]
[Resources.php] Must. Have. Order.

12 years agoRELEASE-NOTES-1.19 for r102722
Sam Reed [Fri, 11 Nov 2011 00:13:27 +0000 (00:13 +0000)]
RELEASE-NOTES-1.19 for r102722

12 years ago* (bug 30062) Add $wgDBprefix option to cli installer
Sam Reed [Fri, 11 Nov 2011 00:05:04 +0000 (00:05 +0000)]
* (bug 30062) Add $wgDBprefix option to cli installer

Patch by Grunny

12 years agoFix file name and class case.
gicode [Thu, 10 Nov 2011 23:52:56 +0000 (23:52 +0000)]
Fix file name and class case.

Follow-up r102719

12 years agoAdd test to catch the problem fixed in r102595.
gicode [Thu, 10 Nov 2011 23:45:35 +0000 (23:45 +0000)]
Add test to catch the problem fixed in r102595.

Confirmed the test works by removing "Test" from one of the test file names.

12 years agoon tablesort, verify <caption> is the first child in the table
Antoine Musso [Thu, 10 Nov 2011 22:54:29 +0000 (22:54 +0000)]
on tablesort, verify <caption> is the first child in the table

r102303 tried to compare the whole table when bug 32047 only require
we have <caption> as a first child.  Easier definition leads to easier
code!

12 years agoAdded some revision table comments
Aaron Schulz [Thu, 10 Nov 2011 21:03:23 +0000 (21:03 +0000)]
Added some revision table comments

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 10 Nov 2011 20:56:42 +0000 (20:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoDocumentation
Sam Reed [Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)]
Documentation

12 years ago* sry about that :S ... 10x Aaron
Jure Kajzer [Thu, 10 Nov 2011 20:50:01 +0000 (20:50 +0000)]
* sry about that :S ... 10x Aaron

12 years agoFix syntax error I introduced from r102683
Sam Reed [Thu, 10 Nov 2011 20:49:11 +0000 (20:49 +0000)]
Fix syntax error I introduced from r102683

12 years agoPass in some more , __METHOD__
Sam Reed [Thu, 10 Nov 2011 20:44:37 +0000 (20:44 +0000)]
Pass in some more , __METHOD__

12 years agoAdd $fname to tableExists
Sam Reed [Thu, 10 Nov 2011 20:39:23 +0000 (20:39 +0000)]
Add $fname to tableExists

Pass $fname/__METHOD__ in in upstream callers

12 years ago* fix as per comment on CR r102625#c25856
Jure Kajzer [Thu, 10 Nov 2011 19:49:32 +0000 (19:49 +0000)]
* fix as per comment on CR r102625#c25856

12 years agoRevert r102650, r102640. Caused breakage on translatewiki.net:
Siebrand Mazeland [Thu, 10 Nov 2011 19:01:41 +0000 (19:01 +0000)]
Revert r102650, r102640. Caused breakage on translatewiki.net:

No localisation cache found for English. Please run maintenance/rebuildLocalisationCache.php.

Backtrace:

#0 /www/w/includes/LocalisationCache.php(288): LocalisationCache->initLanguage('en')
#1 /www/w/includes/LocalisationCache.php(223): LocalisationCache->loadItem('en', 'specialPageAlia...')
#2 /www/w/languages/Language.php(2630): LocalisationCache->getItem('en', 'specialPageAlia...')
#3 /www/w/includes/SpecialPageFactory.php(211): Language->getSpecialPageAliases()
#4 /www/w/includes/SpecialPageFactory.php(247): SpecialPageFactory::getAliasList()
#5 /www/w/includes/Title.php(4186): SpecialPageFactory::resolveAlias('LanguageStats/n...')
#6 /www/w/includes/Wiki.php(154): Title->isSpecial('Badtitle')
#7 /www/w/includes/Wiki.php(605): MediaWiki->performRequest()
#8 /www/w/includes/Wiki.php(524): MediaWiki->main()
#9 /www/w/index.php(58): MediaWiki->run()
#10 {main}

12 years agoFollow-up r102587. Add details to comments and add a couple more tests.
gicode [Thu, 10 Nov 2011 18:02:38 +0000 (18:02 +0000)]
Follow-up r102587.  Add details to comments and add a couple more tests.

12 years agoMinor tweaks to r102595: remove echo that clutters output, etc
Chad Horohoe [Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)]
Minor tweaks to r102595: remove echo that clutters output, etc

12 years agoUse WikiPage instead of Article to call getRedirectTarget()
Alexandre Emsenhuber [Thu, 10 Nov 2011 14:31:19 +0000 (14:31 +0000)]
Use WikiPage instead of Article to call getRedirectTarget()

12 years agosome more oracle-phpunit-fu (should not affect non-oracle)
Jure Kajzer [Thu, 10 Nov 2011 13:29:32 +0000 (13:29 +0000)]
some more oracle-phpunit-fu (should not affect non-oracle)
* CloneDatabase - already droping tables in internal function, removed duplicate action
* DatabaseOracle - stopped ignoring "temporary" parameter
* added two parameters to phpunit (use-normal-tables & reuse-db), default actions stay the same
* with reuse-db oracle phpunit test run on oracle down to 1m 20s ;)

12 years agocorrect variable name
Antoine Musso [Thu, 10 Nov 2011 13:14:52 +0000 (13:14 +0000)]
correct variable name

This is caused by r102640, I have moved some code to a new function
and forgot to rename the internal variable name to match the function
parameter.

12 years agoMade DifferenceEngine use a context instead of global variables and updaters calls...
Alexandre Emsenhuber [Thu, 10 Nov 2011 13:06:52 +0000 (13:06 +0000)]
Made DifferenceEngine use a context instead of global variables and updaters calls to constructor in core

12 years agoMade setupGlobals() return the created context and use it instead of either global...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:49:10 +0000 (12:49 +0000)]
Made setupGlobals() return the created context and use it instead of either global variables or recreating more instance of those classes

12 years agoRemoved FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:09:33 +0000 (12:09 +0000)]
Removed FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are not used and would throw an error since FeedItem::$Title is a string and not an object

12 years agomove store writing out of recache()
Antoine Musso [Thu, 10 Nov 2011 11:56:52 +0000 (11:56 +0000)]
move store writing out of recache()

Writing to cache is now handled in a new method. That makes recache() a bit
shorter and easier to read. Since there is no point in writing data to
/dev/null , return early in such a case (ie if store is LCStore_Null).

12 years agoload up includes/Setup.php before Maintenance::finalSetup()
Antoine Musso [Thu, 10 Nov 2011 11:18:50 +0000 (11:18 +0000)]
load up includes/Setup.php before Maintenance::finalSetup()

This let us get access to global functions and the autoloader when trying
to do some final setup for our maintenance scripts.

12 years agoFollow-up r102628, r102612: More protocol relative URLs.
Siebrand Mazeland [Thu, 10 Nov 2011 09:42:16 +0000 (09:42 +0000)]
Follow-up r102628, r102612: More protocol relative URLs.
Also contains localisation updates from //translatewiki.net :)

12 years ago* reverted changes to Block and ApiBlockTest made in r102625 ... PEBKAC
Jure Kajzer [Thu, 10 Nov 2011 09:36:18 +0000 (09:36 +0000)]
* reverted changes to Block and ApiBlockTest made in r102625 ... PEBKAC

12 years agoFollow-up r102612: Use protocol relative URLs for translatewiki.net also
Siebrand Mazeland [Thu, 10 Nov 2011 09:06:33 +0000 (09:06 +0000)]
Follow-up r102612: Use protocol relative URLs for translatewiki.net also

12 years ago* Added getInfinity to DatabaseOracle
Jure Kajzer [Thu, 10 Nov 2011 07:41:12 +0000 (07:41 +0000)]
* Added getInfinity to DatabaseOracle
* Block - replaced 'infinity' strings with DB->getInfinity calls
* UploadStash - added sequence value generation for ID

12 years agoAdd a new User::getDisplayName() to return the name that should be displayed in the...
Daniel Friesen [Thu, 10 Nov 2011 06:55:21 +0000 (06:55 +0000)]
Add a new User::getDisplayName() to return the name that should be displayed in the interface.
Add a UserDisplayName hook to allow extensions to give custom display names for users.
Add a $wgRealNameInInterface to use the real name of a user as the display name.
To start of the first use of the display name functionality tweak SkinTemplate to declare the userdisplayname and use it inside of personal_urls.

12 years agoRefactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalUR...
Daniel Friesen [Thu, 10 Nov 2011 03:27:55 +0000 (03:27 +0000)]
Refactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalURL and getFullURL.
This shouldn't cause any back or forward compat issues since php treats method names as case-insensitive. So this change shouldn't break any old extensions, and extensions are free to start using getLinkURL and won't have any issue breaking with old versions of MediaWiki.

12 years ago[mediawiki.Uri] Add overrideKeys option
Krinkle [Thu, 10 Nov 2011 02:08:47 +0000 (02:08 +0000)]
[mediawiki.Uri] Add overrideKeys option
* The behavior of turning foo=bar&foo=quux&lorem=ipsum into "{ lorem: 'ipsum', foo: ['bar', 'quux'] }", has annoyed me several times. As it is in contrary with the way PHP works (PHP only makes numeral arrays if the key ends in '[]'). Adding in an option to make mw.Uri behave like that.
* We may wanna make that the default at some point, leaving default behavior unchanged for now.
* Converted 'strictMode' into 'options', kept backwards compatibility
* Fixed documentation comment for example (q1=0 -> "{ q1: '0'")
* Updated unit tests to account for this option.

12 years agoThis SVN commit fixes bug32220 and makes links to mediawiki.org in language message...
Benny Situ [Thu, 10 Nov 2011 01:13:35 +0000 (01:13 +0000)]
This SVN commit fixes bug32220 and makes links to mediawiki.org in language message files protocol relative

12 years agoFollow-up r102521
Platonides [Wed, 9 Nov 2011 23:35:30 +0000 (23:35 +0000)]
Follow-up r102521
Remove $wgUseExternalEditor globals.

12 years agoMove tests that have likely never been executed. Now they will be executed.
gicode [Wed, 9 Nov 2011 23:11:52 +0000 (23:11 +0000)]
Move tests that have likely never been executed.  Now they will be executed.

It might be a good idea to have a commit hook or similar to catch these.

You can find candidates for renaming with this command:
$ find tests/phpunit/includes/ -name '*.php' | grep -Ev 'Test.php$' | xargs grep -l MediaWikiTestCase

12 years agoReverted r101244 changes - these are not equivalent and may have been causing the...
Aaron Schulz [Wed, 9 Nov 2011 22:59:09 +0000 (22:59 +0000)]
Reverted r101244 changes - these are not equivalent and may have been causing the assertion failures people (timo, myself) were getting.

12 years agoessage=fix trumped line of code from svn update
Rob Moen [Wed, 9 Nov 2011 22:53:45 +0000 (22:53 +0000)]
essage=fix trumped line of code from svn update

12 years agoAdd wfRemoveDotSegments and unit tests. This is a sane step towards fixing
gicode [Wed, 9 Nov 2011 22:44:12 +0000 (22:44 +0000)]
Add wfRemoveDotSegments and unit tests.  This is a sane step towards fixing
bug 32168.  This implements RFC3986 Section 5.2.4.
http://tools.ietf.org/html/rfc3986#section-5.2.4

This is important because you need to remove dot segments in order to safely
compare URLs when limiting URLs to a particular path.

12 years agoFixed misleading getItem() comments...things like arrays or FileDependency objects...
Aaron Schulz [Wed, 9 Nov 2011 22:35:31 +0000 (22:35 +0000)]
Fixed misleading getItem() comments...things like arrays or FileDependency objects and what not can be returned

12 years agoessage=This bug fixes bug30483
Rob Moen [Wed, 9 Nov 2011 22:08:38 +0000 (22:08 +0000)]
essage=This bug fixes bug30483

12 years agoCommit to fix bug 30513.
Diederik van Liere [Wed, 9 Nov 2011 21:15:48 +0000 (21:15 +0000)]
Commit to fix bug 30513.

12 years agoBug 31995 - Addition of PPFrame::getTitle
Sam Reed [Wed, 9 Nov 2011 20:52:24 +0000 (20:52 +0000)]
Bug 31995 - Addition of PPFrame::getTitle

Applied patch by Van de Bugger

Added documentation to go with

Added code to Preprocess_HipHop too

12 years agoUpdate RELEASE-NOTES-1.18 from branch
Sam Reed [Wed, 9 Nov 2011 20:40:22 +0000 (20:40 +0000)]
Update RELEASE-NOTES-1.18 from branch

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 9 Nov 2011 20:18:41 +0000 (20:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoMove RELEASE-NOTES from r102416, after r102542
Sam Reed [Wed, 9 Nov 2011 17:34:52 +0000 (17:34 +0000)]
Move RELEASE-NOTES from r102416, after r102542

12 years ago(bug 32256) API list=search stops at first invalid result. Thanks to Lupo for finding...
Roan Kattouw [Wed, 9 Nov 2011 17:20:05 +0000 (17:20 +0000)]
(bug 32256) API list=search stops at first invalid result. Thanks to Lupo for finding the cause of the bug: in the code path for invalid titles, the iterator wasn't moved to the next result, so the loop kept processing the same result until it hit the limit.

12 years agomove bug 29912 RN form 1.19 to 1.18
Antoine Musso [Wed, 9 Nov 2011 17:14:53 +0000 (17:14 +0000)]
move bug 29912 RN form 1.19 to 1.18

This follow up a manual merge of r101002 in REL1_18 made by r102535

Bug fix is:
(bug 29912) Unit tests break if parsertest tables are still present

12 years agoDrop "selenium" user right. As far as I can tell, this isn't actually used anywhere...
Chad Horohoe [Wed, 9 Nov 2011 17:01:09 +0000 (17:01 +0000)]
Drop "selenium" user right. As far as I can tell, this isn't actually used anywhere (core or exts) and is leftover from the special page for selenium that was removed.

12 years agosplit getHooksFromDoc() function
Antoine Musso [Wed, 9 Nov 2011 16:15:35 +0000 (16:15 +0000)]
split getHooksFromDoc() function

if() { LOT OF CODE } else { LOT OF CODE } structures are hard to read
move the LOT OF CODE piece in its own function makes code easier to
understand.