lhc/web/wiklou.git
12 years agocode readability is everything
Jack Phoenix [Wed, 6 Jul 2011 00:01:43 +0000 (00:01 +0000)]
code readability is everything

12 years agoDivision by zero
Aaron Schulz [Tue, 5 Jul 2011 22:47:21 +0000 (22:47 +0000)]
Division by zero

12 years agomw.util.wikiGetlink default to wgPageName
Krinkle [Tue, 5 Jul 2011 22:10:08 +0000 (22:10 +0000)]
mw.util.wikiGetlink default to wgPageName
* (bug 29723) mw.util.wikiGetlink() should default to wgPageName
* Solution by mybugs.mail

* Adding unit tests

12 years agoanother fix for old jQuery UI on live
Ryan Kaldari [Tue, 5 Jul 2011 22:03:38 +0000 (22:03 +0000)]
another fix for old jQuery UI on live

12 years agomw.util optimalizations:
Krinkle [Tue, 5 Jul 2011 21:59:38 +0000 (21:59 +0000)]
mw.util optimalizations:
* Remove redundant mw>mediaWiki passing through IIFE
* Using local alias to global mw.util

12 years agoReverted part of r91246, fixes: Fatal error: Call to undefined method RawPage::getSki...
Aaron Schulz [Tue, 5 Jul 2011 21:28:27 +0000 (21:28 +0000)]
Reverted part of r91246, fixes: Fatal error: Call to undefined method RawPage::getSkin() in C:\wamp\www\MW_trunk\includes\RawPage.php on line 156

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 5 Jul 2011 21:05:02 +0000 (21:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-05 21:00:00 UTC)

12 years agoPer Brion, fix for r91460: make this a bit more robust
Alexandre Emsenhuber [Tue, 5 Jul 2011 16:40:12 +0000 (16:40 +0000)]
Per Brion, fix for r91460: make this a bit more robust

12 years agoOverride IndexPager::getTitle() in AlphabeticPager instance of core to not rely on...
Alexandre Emsenhuber [Tue, 5 Jul 2011 16:18:30 +0000 (16:18 +0000)]
Override IndexPager::getTitle() in AlphabeticPager instance of core to not rely on $wgTitle

12 years ago* Don't create a WebRequest obhject in CLI mode but a FauxRequest; avoids some useles...
Alexandre Emsenhuber [Tue, 5 Jul 2011 15:05:14 +0000 (15:05 +0000)]
* Don't create a WebRequest obhject in CLI mode but a FauxRequest; avoids some useless notices about headers already sent (I know this is more a PHP silliness, but anyway)
* Added HTTP response code parsing (sending a "HTTP/1.x code" header was throwing a NOTICE about undefined index on the result of the explode() call) and storage; added FauxResponse::getStatusCode() to retrieve it

12 years agoHashar seems to have missed one occurence of OutputPage::getStatusMessage() in r91425
Alexandre Emsenhuber [Tue, 5 Jul 2011 14:37:22 +0000 (14:37 +0000)]
Hashar seems to have missed one occurence of OutputPage::getStatusMessage() in r91425

12 years ago(bug 5800) Added $formCallback as a parameter to the hook EditPage::showEditForm...
Chad Horohoe [Tue, 5 Jul 2011 12:48:46 +0000 (12:48 +0000)]
(bug 5800) Added $formCallback as a parameter to the hook EditPage::showEditForm:initial

12 years agoRemoved usage of error suppression operator
Alexandre Emsenhuber [Tue, 5 Jul 2011 11:08:05 +0000 (11:08 +0000)]
Removed usage of error suppression operator

12 years agoRemoved CategoryViewer::getSkin() and replaced by static calls to Linker; no use...
Alexandre Emsenhuber [Tue, 5 Jul 2011 10:45:03 +0000 (10:45 +0000)]
Removed CategoryViewer::getSkin() and replaced by static calls to Linker; no use in extensions.

12 years agoAdded percentages to ProfilerSimpleText
Aaron Schulz [Tue, 5 Jul 2011 06:39:07 +0000 (06:39 +0000)]
Added percentages to ProfilerSimpleText

12 years ago(follow-up r91436) add new hook to hooks.txt
Brian Wolff [Tue, 5 Jul 2011 05:33:54 +0000 (05:33 +0000)]
(follow-up r91436) add new hook to hooks.txt

I totally updated the doc file, and then committed my other changes without the doc file.

12 years ago(Follow-up r90759 per CR) Use a hook to register new Collations instead of just takin...
Brian Wolff [Tue, 5 Jul 2011 05:30:04 +0000 (05:30 +0000)]
(Follow-up r90759 per CR) Use a hook to register new Collations instead of just taking the collation name as a class name

12 years ago* Added getFileVersion()/setFileVersion() functions to OutputPage
Aaron Schulz [Tue, 5 Jul 2011 05:23:26 +0000 (05:23 +0000)]
* Added getFileVersion()/setFileVersion() functions to OutputPage
* Removed getDisplayedFile() from FlaggedPage and simplified getFile()
* Cleaned up getIncludeParams() to just do formatting
* Made template/file IDs mandatory for RevisionReviewFormUI

12 years agoFollow-up r91432: I always forget release notes..
Robin Pepermans [Tue, 5 Jul 2011 01:51:12 +0000 (01:51 +0000)]
Follow-up r91432: I always forget release notes..

12 years ago(see bug 29712) Removing the defaultUserOptionOverrides in MessagesXx.php because...
Robin Pepermans [Tue, 5 Jul 2011 01:26:49 +0000 (01:26 +0000)]
(see bug 29712) Removing the defaultUserOptionOverrides in MessagesXx.php because it is broken (and has been for a long time) and secondly, it is only used for things that can be done otherwise:
* 'editfont' => 'sans-serif'; -> trivial (can be set in CSS)
* 'underline' => 0; by languages written in scripts that are hard to read with underlines -> now set in shared.css, which makes it work also when they are used as interface language (note that [lang="xx"] is not yet present on wikitext content by default but will be soon as part of my work on RTL improvements)
* 'quickbar' => 2; by RTL languages. For this, I introduced a new option (5) that sets left/right according to the directionality of your interface language (and automatic is better than setting it in MessagesXx files!). Note that the broken feature was in this case "corrected" by CSS flipping, causing preferences to say "left" while it was actually "right". This commit fixes that bug as well.
Third, it actually would have made more sense to have it them load for wgLang instead of wgContLang, but that's not possible because wgLang is itself dependent on preferences

12 years agoFollowup r89617, r91428 call $pager->doQuery explicitally so we get a set result...
Sam Reed [Tue, 5 Jul 2011 00:09:09 +0000 (00:09 +0000)]
Followup r89617, r91428 call $pager->doQuery explicitally so we get a set result object, from which, we can then get a row count

Expliticly marking doQuery() in pager as public

12 years agousing proper margin heights: 14 + 68 * 2 = 150
Ryan Kaldari [Mon, 4 Jul 2011 23:43:23 +0000 (23:43 +0000)]
using proper margin heights: 14 + 68 * 2 = 150

12 years agoRevert r90678 per CR
Krinkle [Mon, 4 Jul 2011 23:36:54 +0000 (23:36 +0000)]
Revert r90678 per CR

12 years agobetter fix for bug 27338 - doesnt rely on line-height
Ryan Kaldari [Mon, 4 Jul 2011 21:30:09 +0000 (21:30 +0000)]
better fix for bug 27338 - doesnt rely on line-height

12 years agofixing rounding problem, per comment at r82309
Ryan Kaldari [Mon, 4 Jul 2011 21:05:27 +0000 (21:05 +0000)]
fixing rounding problem, per comment at r82309

12 years agoHTTP status messages move: OutputPage -> HttpStatus
Antoine Musso [Mon, 4 Jul 2011 21:01:19 +0000 (21:01 +0000)]
HTTP status messages move: OutputPage -> HttpStatus

OutputPage::getStatusMessage() is a method to convert a numeric HTTP status
code to an english message.  It does not really belong to the OutputPage were
it was for historical reason.
This patch move the basic function to a non MediaWiki dependant class in our
directory includes/libs.  We could potentially enhances it, but I do not see
any use cases for us yet.
I have renamed the method to the shorter 'getMessage' since the word 'status'
is now in the class name.

Summary of changes:
* OutputPage::getStatusMessage becomes HttpStatus::getMessage
* Method moved to the new includes/libs/HttpStatus.php
* Autoloader updated
* History kept by using 'svn copy'
* No functional changes
* No input/output format changes
* Old occurences modified in phase3
* OutputPage::getStatusMessages() marked as deprecated

PHPUnit test suite is fine.
Tested manually using a redirection

12 years agomediawiki.util.test.js: TestSwarm reports breakage in Chrome4-Linux
Krinkle [Mon, 4 Jul 2011 20:11:55 +0000 (20:11 +0000)]
mediawiki.util.test.js: TestSwarm reports breakage in Chrome4-Linux
- It only appears on Linux not in Mac OS X with the same Chrome version
- Adding extra checks and stops() in attempt to get a more useful report than then sudden stop at:
http://toolserver.org/~krinkle/testswarm/?state=runresults&run_id=1258&client_id=3092#

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 4 Jul 2011 20:11:46 +0000 (20:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-04 19:53:00 UTC)

12 years agotests for Html::testExpandAttributes()
Antoine Musso [Mon, 4 Jul 2011 19:51:35 +0000 (19:51 +0000)]
tests for Html::testExpandAttributes()

FIXME: seems a code duplication of Xml::expandAttributes()

follow up r81571 (skip attributes with null value)

12 years agoRemoved doPurge() from ImagePage.php, already moved to WikiFilePage
Aaron Schulz [Mon, 4 Jul 2011 19:19:36 +0000 (19:19 +0000)]
Removed doPurge() from ImagePage.php, already moved to WikiFilePage

12 years agoRevert old page navigation back to a subtitle
Antoine Musso [Mon, 4 Jul 2011 19:17:36 +0000 (19:17 +0000)]
Revert old page navigation back to a subtitle

Please reapply to trunk for inclusion in 1.19.

reverts r85322 & r90883

12 years agojquery.client unit testing
Krinkle [Mon, 4 Jul 2011 19:11:08 +0000 (19:11 +0000)]
jquery.client unit testing
- More elaborate caching in the plugin in order for the code to be testable
- Added support for passing custom user agents (although the default behavior remains unchanged)
- Added support for passing custom profile-objects to $.client.test
- Added test case for all supported browsers according to http://www.mediawiki.org/wiki/Compatibility#Browser
- Replaced userAgent.toLowerCase() with userAgent since this string was already converted to lower case a few lines up

This will likely prevent bugs like bug 27652 and bug 29446.

12 years ago(bug 29109) Allow the automatic edit summary for redirect creation
Brian Wolff [Mon, 4 Jul 2011 17:03:09 +0000 (17:03 +0000)]
(bug 29109) Allow the automatic edit summary for redirect creation
show the first bit of the new redirect page.

Adds $2 to the autoredircomment (not used by default) that contains the first 150-ish characters of the newly created redirect page.

Meant so that the Wikipedian's can see their {{R from foo}} templates.

12 years ago* Removed usage of error suppression operator in includes/db
Alexandre Emsenhuber [Mon, 4 Jul 2011 15:00:30 +0000 (15:00 +0000)]
* Removed usage of error suppression operator in includes/db
* Changed an usage of $_REQUEST to $wgRequest

12 years agoUse WebRequest::getValues() instead of raw $_REQUEST
Alexandre Emsenhuber [Mon, 4 Jul 2011 14:40:17 +0000 (14:40 +0000)]
Use WebRequest::getValues() instead of raw $_REQUEST

12 years agoAllow SqlBagOStuff data to be split over many tables, to avoid lock contention perfor...
Tim Starling [Mon, 4 Jul 2011 12:01:10 +0000 (12:01 +0000)]
Allow SqlBagOStuff data to be split over many tables, to avoid lock contention performance issues on servers with a high write load. See bugs.mysql.com/bug.php?id=61735 and http://bugs.mysql.com/bug.php?id=61736 .

12 years agoFix for r90337 and r90743: Use $this->title instead of $wgTitle, also groupped global...
Alexandre Emsenhuber [Mon, 4 Jul 2011 08:40:41 +0000 (08:40 +0000)]
Fix for r90337 and r90743: Use $this->title instead of $wgTitle, also groupped global declarations at the top

12 years agoChanged calls to Linker::tooltipAndAccesskeyAttribs() to be static and fixed casing...
Alexandre Emsenhuber [Mon, 4 Jul 2011 08:28:27 +0000 (08:28 +0000)]
Changed calls to Linker::tooltipAndAccesskeyAttribs() to be static and fixed casing in method's name

12 years agoFix for the broken tests introduced in r91387.
Krinkle [Sun, 3 Jul 2011 23:24:51 +0000 (23:24 +0000)]
Fix for the broken tests introduced in r91387.

Check input before assuming there are no arguments and the values object is expected.

12 years agoAdding tests for expected reponse when passing invalid values to Map.get
Krinkle [Sun, 3 Jul 2011 23:22:50 +0000 (23:22 +0000)]
Adding tests for expected reponse when passing invalid values to Map.get
* These are currently @broken
* Map.get should (as documented) handle an object for multiple or a string for a single selection and return the value(s). Right now, however, the function returns the values object if the first two if-cases are not matched. It needs an additional check to verify that there are indeed no arguments passed.
* Adding comments in the test suite

12 years agoMinor optimalizations and jsperfs in mediawiki.js
Krinkle [Sun, 3 Jul 2011 23:13:11 +0000 (23:13 +0000)]
Minor optimalizations and jsperfs in mediawiki.js
* Use strict comparison to undefined where possible (arguments and object/array members)
* Make sure $ is not implied global (using jQuery.isFunction at the bottom instead of creating another 1-line closure)

12 years agoUse Linker::linkKnown per Siebrand on r91377.
Robin Pepermans [Sun, 3 Jul 2011 20:37:57 +0000 (20:37 +0000)]
Use Linker::linkKnown per Siebrand on r91377.

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 3 Jul 2011 20:01:47 +0000 (20:01 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-03 19:50:00 UTC)

12 years agoenhance tests name (for --testdox option)
Antoine Musso [Sun, 3 Jul 2011 18:09:30 +0000 (18:09 +0000)]
enhance tests name (for --testdox option)

12 years agoChanging back to $wgUser in SpecialImport.php. Importing pages returned "call to...
Robin Pepermans [Sun, 3 Jul 2011 17:56:59 +0000 (17:56 +0000)]
Changing back to $wgUser in SpecialImport.php. Importing pages returned "call to undefined method ImportReporter::getSkin()" due to r91246.

12 years agosplit tests for ArticleTest
Antoine Musso [Sun, 3 Jul 2011 17:51:11 +0000 (17:51 +0000)]
split tests for ArticleTest

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 2 Jul 2011 20:52:25 +0000 (20:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-02 20:44:00 UTC)

12 years agoMoved doCascadeProtectionUpdates() to WikiPage.php
Aaron Schulz [Sat, 2 Jul 2011 17:45:32 +0000 (17:45 +0000)]
Moved doCascadeProtectionUpdates() to WikiPage.php

12 years agoFix for r91344: removed straggling instances of $this->special in item classes
Aaron Schulz [Sat, 2 Jul 2011 17:27:48 +0000 (17:27 +0000)]
Fix for r91344: removed straggling instances of $this->special in item classes

12 years agoBug #29699: Minor adjustments to Vector search button
Mark A. Hershberger [Sat, 2 Jul 2011 16:12:07 +0000 (16:12 +0000)]
Bug #29699: Minor adjustments to Vector search button

Patch from Erwin Dokter as an alternative(?) to r73427.

Applying here so that it can be tested and compared.

12 years agoThe User object parameter of WikiPage::doRollback() and WikiPage::commitRollback...
Alexandre Emsenhuber [Sat, 2 Jul 2011 15:10:39 +0000 (15:10 +0000)]
The User object parameter of WikiPage::doRollback() and WikiPage::commitRollback() was not passed by the Article implementation because it was not present.
While I'm a it, WikiPage::doRollback() and WikiPage::commitRollback() now require that parameter, moved the check to Article.

12 years agoRemoved one hidden usage of $wgUser
Alexandre Emsenhuber [Sat, 2 Jul 2011 14:53:01 +0000 (14:53 +0000)]
Removed one hidden usage of $wgUser

12 years agoMoved action=rollback to an Action subclass
Alexandre Emsenhuber [Sat, 2 Jul 2011 13:46:56 +0000 (13:46 +0000)]
Moved action=rollback to an Action subclass

12 years agoAdded filterByIds() function to Rev_List and made ID based filtering optional. It...
Aaron Schulz [Sat, 2 Jul 2011 09:30:55 +0000 (09:30 +0000)]
Added filterByIds() function to Rev_List and made ID based filtering optional. It's still mandatory for RevDel_List however.

12 years agoRemoved some dead code (useless since r87806)
Aaron Schulz [Sat, 2 Jul 2011 09:12:08 +0000 (09:12 +0000)]
Removed some dead code (useless since r87806)

12 years agoRemoved dead $undeletedRevisions code (useless since r87804)
Aaron Schulz [Sat, 2 Jul 2011 09:08:22 +0000 (09:08 +0000)]
Removed dead $undeletedRevisions code (useless since r87804)

12 years ago* Added generic Rev_List revision listing class and refactored RevDelete_List stuff...
Aaron Schulz [Sat, 2 Jul 2011 09:04:32 +0000 (09:04 +0000)]
* Added generic Rev_List revision listing class and refactored RevDelete_List stuff to use it
* Fixed bug in revdelete where all list Items where assumed to be of the same type (no longer holds since r87804). This was causing "Undefined property: stdClass::$rev_timestamp" errors for deleted revs.
* Cleaned up RevisionDeleter::getRelationType()
* Minor cleanups to SpecialRevisionDelete

12 years agoPatch to replace for-in with for(;;)
Derk-Jan Hartman [Sat, 2 Jul 2011 08:32:19 +0000 (08:32 +0000)]
Patch to replace for-in with for(;;)

This breaks when strange things are added to Array.prototype (and you never know what users do in their user scripts), so use for (var i = 0; i < ...length; i++ ) instead.

Fixes 29676. Patch courtesy of Micheal M.

12 years ago* Put float:left/right for images in shared.css with @noflip. This was inconsistent...
Robin Pepermans [Sat, 2 Jul 2011 01:57:48 +0000 (01:57 +0000)]
* Put float:left/right for images in shared.css with @noflip. This was inconsistent between skins, causing image alignment on RTL wikis to be dependent on your skin. Left is left and right is right, even for RTL languages :)
* Also moving position: relative; from all skins to shared.css
* Replacing .mw-content-ltr/rtl (added in r90743) with div#content [dir="ltr/rtl"] so it also works on e.g. special pages

12 years agoRemoved followRedirectText, unused
Aaron Schulz [Sat, 2 Jul 2011 00:20:11 +0000 (00:20 +0000)]
Removed followRedirectText, unused

12 years agoMove prefs-beta and prefs-labs messages from WikiEditor to core
Sam Reed [Fri, 1 Jul 2011 23:49:24 +0000 (23:49 +0000)]
Move prefs-beta and prefs-labs messages from WikiEditor to core

12 years agoFixed bogus $conds in r91327
Aaron Schulz [Fri, 1 Jul 2011 23:46:20 +0000 (23:46 +0000)]
Fixed bogus $conds in r91327

12 years ago* Fixed getLatest() check in Article
Aaron Schulz [Fri, 1 Jul 2011 23:33:34 +0000 (23:33 +0000)]
* Fixed getLatest() check in Article
* Added Title::loadFromRow() function and made WikiPage::loadPageData() use it; avoids raw Title field accessing
* Added Revision::newFromPageId() function and changed WikiPage::loadLastEdit() to use it. This makes it try a slave first instead of always hitting the master. It also makes it more consistent with getLatest() for sanity.
* Made WikiPage::loadPageData() use accessor for Title::mRestrictionsExpiry

12 years ago* Add release notes for my recent commits (bug 6100 and others like bugs 28030, 12406...
Robin Pepermans [Fri, 1 Jul 2011 22:50:58 +0000 (22:50 +0000)]
* Add release notes for my recent commits (bug 6100 and others like bugs 28030, 12406, 2834)
* Add me to credits

12 years agoRemoved ampersand in HTMLFileCache constructor
Aaron Schulz [Fri, 1 Jul 2011 22:01:48 +0000 (22:01 +0000)]
Removed ampersand in HTMLFileCache constructor

12 years agoAdd lang & dir attributes to the sitenotice, in the site content language
Robin Pepermans [Fri, 1 Jul 2011 21:28:11 +0000 (21:28 +0000)]
Add lang & dir attributes to the sitenotice, in the site content language

12 years agoAdd direction mark for better RTL display
Robin Pepermans [Fri, 1 Jul 2011 20:48:16 +0000 (20:48 +0000)]
Add direction mark for better RTL display

12 years ago* Changed action=revert to use a subclass of Action
Alexandre Emsenhuber [Fri, 1 Jul 2011 20:07:21 +0000 (20:07 +0000)]
* Changed action=revert to use a subclass of Action
* Added WikiPage::getActionOverrides() to be able to execute different actions depending on the namespace (obviously needed for action=revert). This is only used when the value of $wgActions for the corresponding action is true; so extension can still override this.
* Added Action::getDescription() to ease the change of the page header and the <title> element

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 1 Jul 2011 19:48:58 +0000 (19:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-01 19:43:00 UTC)

12 years agothrow an exception on !is_executable( $wgExiv2Command )
Antoine Musso [Fri, 1 Jul 2011 18:34:50 +0000 (18:34 +0000)]
throw an exception on !is_executable( $wgExiv2Command )

12 years agoMerge ApiTestSetup into ApiTestCase and update all subclasses. The amount of duplicat...
Chad Horohoe [Fri, 1 Jul 2011 16:34:02 +0000 (16:34 +0000)]
Merge ApiTestSetup into ApiTestCase and update all subclasses. The amount of duplication here was nasty, and also lets us get rid of a bunch of useless require_once()s.

./phpunit.php --filter Api currently gives me: Tests: 24, Assertions: 107, Incomplete: 1, Skipped: 2.

12 years agoFix for Bug #29628 - scriptpath Option of maintenance/install.php is ignored
Mark A. Hershberger [Fri, 1 Jul 2011 14:22:59 +0000 (14:22 +0000)]
Fix for Bug #29628 - scriptpath Option of maintenance/install.php is ignored

    The Script Path Option (--scriptpath) of maintenance/install.php
    is silently ignored if there is $_SERVER['SCRIPT_NAME'] set.

Apply patch from Tobias Müller.

12 years agoReplaced calls to Skin::formatSize() by Language::formatSize() where escaping is...
Alexandre Emsenhuber [Fri, 1 Jul 2011 09:03:15 +0000 (09:03 +0000)]
Replaced calls to Skin::formatSize() by Language::formatSize() where escaping is not needed (the former is just a wrapper to the latter with a call to htmlspecialchars())

12 years agoCall Linker::link() statically instead of getting a Skin object from $wgUser
Alexandre Emsenhuber [Fri, 1 Jul 2011 08:24:32 +0000 (08:24 +0000)]
Call Linker::link() statically instead of getting a Skin object from $wgUser

12 years agoRemove unused globals
Sam Reed [Fri, 1 Jul 2011 02:58:42 +0000 (02:58 +0000)]
Remove unused globals

12 years agoAdd documentation
Sam Reed [Fri, 1 Jul 2011 02:57:31 +0000 (02:57 +0000)]
Add documentation

Trim trailing whitespace

12 years agoMinor revert to r91246
Sam Reed [Fri, 1 Jul 2011 02:28:08 +0000 (02:28 +0000)]
Minor revert to r91246

12 years agoChange usages of $wgUser->getSkin() in special pages to use $this->getSkin()
Sam Reed [Fri, 1 Jul 2011 02:25:19 +0000 (02:25 +0000)]
Change usages of $wgUser->getSkin() in special pages to use $this->getSkin()

Fix trailing whitespace

12 years agoFix numerous undefined variables
Sam Reed [Fri, 1 Jul 2011 01:42:48 +0000 (01:42 +0000)]
Fix numerous undefined variables

12 years agoRemove unused parameter, update callers
Sam Reed [Fri, 1 Jul 2011 01:37:15 +0000 (01:37 +0000)]
Remove unused parameter, update callers

Trim whitespace

12 years agoFollowup r91168, fix last usage of $currentUser which was undefined
Sam Reed [Fri, 1 Jul 2011 01:30:26 +0000 (01:30 +0000)]
Followup r91168, fix last usage of $currentUser which was undefined

12 years agoFollow-up r91123:
Aaron Schulz [Fri, 1 Jul 2011 00:12:09 +0000 (00:12 +0000)]
Follow-up r91123:
* Tweaked getRevision() return type to NULL on failure
* Changed "$revision === null" checks to just "!$revision" (this avoids the landmine of getting false or something)

12 years ago(Follow-up r87705) per CR add docs to function. No code changes.
Brian Wolff [Thu, 30 Jun 2011 22:47:41 +0000 (22:47 +0000)]
(Follow-up r87705) per CR add docs to function. No code changes.

12 years agoFollowup r91224: stupid syntax error
Chad Horohoe [Thu, 30 Jun 2011 21:32:55 +0000 (21:32 +0000)]
Followup r91224: stupid syntax error

12 years agoRemove superfluous inclusion of SiteConfiguration in doMaintenance. It's in the AutoL...
Chad Horohoe [Thu, 30 Jun 2011 21:25:52 +0000 (21:25 +0000)]
Remove superfluous inclusion of SiteConfiguration in doMaintenance. It's in the AutoLoader and has already been initialized by DefaultSettings by this point.

As a result: rm DIY inclusion protection, since this was the only reason it was still needed.

12 years agotest that wfUrlencode() encodes apostrophe
Antoine Musso [Thu, 30 Jun 2011 21:14:33 +0000 (21:14 +0000)]
test that wfUrlencode() encodes apostrophe

12 years agor91207: Make one qunit test var local. Thanks Krinkle
Leo Koppelkamm [Thu, 30 Jun 2011 21:13:12 +0000 (21:13 +0000)]
r91207: Make one qunit test var local. Thanks Krinkle

12 years agoforgot one, follow-up to r91204
Ryan Kaldari [Thu, 30 Jun 2011 21:10:31 +0000 (21:10 +0000)]
forgot one, follow-up to r91204

12 years ago* Follow-up r84397: make sure that mysql uses the job_id index even with the job_cmd...
Aaron Schulz [Thu, 30 Jun 2011 20:32:41 +0000 (20:32 +0000)]
* Follow-up r84397: make sure that mysql uses the job_id index even with the job_cmd clause
* Removed redundant 'LIMIT' option, already added by using selectRow()

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 30 Jun 2011 20:17:56 +0000 (20:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-30 20:09:00 UTC)

12 years agoFixed a long-standing broken test:
Chad Horohoe [Thu, 30 Jun 2011 20:11:45 +0000 (20:11 +0000)]
Fixed a long-standing broken test:

1) ApiUploadTest::testUploadStash
Failed asserting that <boolean:true> is false.

Did this by copying the correct stuff from $_SESSION to our local $session we're using for the test. Not sure if this is strictly correct, but hey it passes ;-)

Currently at: Tests: 1622, Assertions: 32090, Incomplete: 8, Skipped: 5.

12 years agoRemove --upload option to parserTests.php and backend RemoteTestRecorder -- was only...
Chad Horohoe [Thu, 30 Jun 2011 19:47:26 +0000 (19:47 +0000)]
Remove --upload option to parserTests.php and backend RemoteTestRecorder -- was only used for since-removed CR integration

12 years ago* Marked WikiCategoryPage::hasViewableContent() as "public"
Aaron Schulz [Thu, 30 Jun 2011 19:44:06 +0000 (19:44 +0000)]
* Marked WikiCategoryPage::hasViewableContent() as "public"
* Renamed WikiPage::getID -> WikiPage::getId
* Fixed undefined $changed var from r91180
* Various doc tweaks

12 years agor86088: Adding legacy support for .sortbottom & a test for it per CR
Leo Koppelkamm [Thu, 30 Jun 2011 19:40:19 +0000 (19:40 +0000)]
r86088: Adding legacy support for .sortbottom & a test for it per CR

12 years agofixing jQuery UI button styles for the old version of jQuery UI that is on live ...
Ryan Kaldari [Thu, 30 Jun 2011 19:37:17 +0000 (19:37 +0000)]
fixing jQuery UI button styles for the old version of jQuery UI that is on live - still forward compatible as well

12 years agoPer Aaron, fix for r91180: pass false to second parameter of User::newFromName()...
Alexandre Emsenhuber [Thu, 30 Jun 2011 19:34:25 +0000 (19:34 +0000)]
Per Aaron, fix for r91180: pass false to second parameter of User::newFromName() to allow anonymous users

12 years agoFollow-up r89544: add dot per CR
Bryan Tong Minh [Thu, 30 Jun 2011 18:51:24 +0000 (18:51 +0000)]
Follow-up r89544: add dot per CR

12 years agoReverted r91195, this isn't needed ;)
Aaron Schulz [Thu, 30 Jun 2011 18:45:48 +0000 (18:45 +0000)]
Reverted r91195, this isn't needed ;)

12 years agoAdded normalizeSubpageLink() to DummyLinker. __call doesn't handle static function...
Aaron Schulz [Thu, 30 Jun 2011 18:38:32 +0000 (18:38 +0000)]
Added normalizeSubpageLink() to DummyLinker. __call doesn't handle static function call attempts, __callStatic__ is PHP >= 5.3, and both clobber references anyway. Just added a wrapper function instead.

12 years agoLinker::titleAttrib() didn't obey $wgEnableTooltipsAndAccesskeys
Platonides [Thu, 30 Jun 2011 18:21:05 +0000 (18:21 +0000)]
Linker::titleAttrib() didn't obey $wgEnableTooltipsAndAccesskeys