lhc/web/wiklou.git
12 years agow/s
Mark A. Hershberger [Tue, 27 Dec 2011 00:28:23 +0000 (00:28 +0000)]
w/s

12 years agoIn LocalFile:
Aaron Schulz [Mon, 26 Dec 2011 23:35:40 +0000 (23:35 +0000)]
In LocalFile:
* Removed bogus rmdir() call.
* Added lock() calls to upgradeRow()/getSha1().
* Use FileRepo getFileSha1() in getSha1() rather than via FSFile.
* Made purgeThumbList()/migrateThumbFile() use FileRepo::cleanupBatch().
* A few other minor cleanups.
* w/s cleanup in recordUpload2().
In FSRepo:
* Removed deleted zone config code from constructor; useless since r107028.
In FileBackend:
* Make sure 'latest' param gets passed through via $params for some functions.
* Cleaned up doMoveInternal() to use *_Internal() functions.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 26 Dec 2011 21:21:55 +0000 (21:21 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix fixme on r107328, attempting to use $this in a static method
Sam Reed [Mon, 26 Dec 2011 21:03:06 +0000 (21:03 +0000)]
Fix fixme on r107328, attempting to use $this in a static method

Made said method non static, and updated caller

12 years agoFollowup r106554
Sam Reed [Mon, 26 Dec 2011 17:06:27 +0000 (17:06 +0000)]
Followup r106554

Make init function static

12 years agoUse WikiPage instead of Article to call updateRevisionOn()
Alexandre Emsenhuber [Mon, 26 Dec 2011 16:28:56 +0000 (16:28 +0000)]
Use WikiPage instead of Article to call updateRevisionOn()

12 years ago[Core JS] Remove long deprecated globals 'ta' and 'akeytt'
Krinkle [Mon, 26 Dec 2011 16:24:45 +0000 (16:24 +0000)]
[Core JS] Remove long deprecated globals 'ta' and 'akeytt'
* Not used anywhere in ./phase3/
* Not used anywhere in ./extensions/
* Deprecated in MediaWiki 1.16 according to HISTORY

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Mon, 26 Dec 2011 16:20:30 +0000 (16:20 +0000)]
* Use local context to get messages
* Pass the context to ContribsPager

12 years ago[Core JS] wikibits.js / IEFixes clean up
Krinkle [Mon, 26 Dec 2011 16:12:07 +0000 (16:12 +0000)]
[Core JS] wikibits.js / IEFixes clean up
* fix on-the-loose fixalpha() call
-- Calls should not be dangling loose like that
-- Removed local calls from skins and installer
-- instead calling from the IEFixes script (which is loaded raw by wikibits which is loaded from the bottom, as are all legacy scripts)
* Removing usage of 'skinpath' and 'skin' globals in wikibits.js, those aren't globals per se since introduction of mw.config and $wgLegacyJavaScriptGlobals
* Wrapping wikibits.js in closure to avoid leakage of "local" variables. This shouldn't break anything as it is loaded through resource loader which, in production mode, wraps it in a closure anyway.
* adding explicit posision=>bottom for wikibits. 'bottom' is default but repeating here since it must not change for legacy reasons.

12 years agoIn EditPage::showDiff():
Alexandre Emsenhuber [Mon, 26 Dec 2011 15:54:10 +0000 (15:54 +0000)]
In EditPage::showDiff():
* Group global declarations
* Only get 'currentrev' and 'yourtext' messages if needed

12 years agoUpdating jquery.qunit from upstream
Krinkle [Mon, 26 Dec 2011 15:04:52 +0000 (15:04 +0000)]
Updating jquery.qunit from upstream
* Source: https://github.com/jquery/qunit/tree/0aba72f723579082735782231a3503aa249618aa
* 1.2.0pre (master/trunk) -> v1.2.0 (release tag)

12 years agoNote to self: pressing save before commiting is really a good idea.
Alexandre Emsenhuber [Mon, 26 Dec 2011 14:50:39 +0000 (14:50 +0000)]
Note to self: pressing save before commiting is really a good idea.
Follow-up r107319.

12 years ago* (bug 30711) WikiPage::replaceSection() now always the current text when adding...
Alexandre Emsenhuber [Mon, 26 Dec 2011 14:45:58 +0000 (14:45 +0000)]
* (bug 30711) WikiPage::replaceSection() now always the current text when adding a new section
* Made WikiPage::replaceSection() use getRawText() to get the current text
* Made EditPage::showDiff() also use the current text when diffing for adding a new section
* Removed the "You are editing an old version" when section=new since the oldid parameter has no effect new due to the above

12 years agoFollow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect...
Alexandre Emsenhuber [Mon, 26 Dec 2011 14:15:42 +0000 (14:15 +0000)]
Follow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect.php maintenance script

12 years agoSimplified Title::canExist()
Max Semenik [Mon, 26 Dec 2011 08:07:56 +0000 (08:07 +0000)]
Simplified Title::canExist()

12 years agoLocalisation updates for magic word localistion for core from http://translatewiki...
Siebrand Mazeland [Mon, 26 Dec 2011 00:21:52 +0000 (00:21 +0000)]
Localisation updates for magic word localistion for core from translatewiki.net.

12 years agoLocalisation updates for special page aliases for core from http://translatewiki...
Siebrand Mazeland [Mon, 26 Dec 2011 00:05:13 +0000 (00:05 +0000)]
Localisation updates for special page aliases for core from translatewiki.net.

12 years agoLocalisation updates for namespace names for core from http://translatewiki.net.
Siebrand Mazeland [Sun, 25 Dec 2011 23:58:49 +0000 (23:58 +0000)]
Localisation updates for namespace names for core from translatewiki.net.

12 years agoFixed undefined var from r106280
Aaron Schulz [Sun, 25 Dec 2011 23:17:30 +0000 (23:17 +0000)]
Fixed undefined var from r106280

12 years agoBye, bye $wgExtensionAliasesFiles (deprecated in 1.16).
Siebrand Mazeland [Sun, 25 Dec 2011 23:09:26 +0000 (23:09 +0000)]
Bye, bye $wgExtensionAliasesFiles (deprecated in 1.16).

12 years agotypo; follows-up r107289
Krinkle [Sun, 25 Dec 2011 20:34:03 +0000 (20:34 +0000)]
typo; follows-up r107289

12 years ago[Core JS] Clean up and optimization mediawiki.util
Krinkle [Sun, 25 Dec 2011 20:32:38 +0000 (20:32 +0000)]
[Core JS] Clean up and optimization mediawiki.util
* partial rewrite of updateTooltipAccessKeys, much shorter and a bit faster
-- Remove self-calling logic, totally unnecessary here
-- removing the .each() loop, using .attr()'s callback function instead
* directly calling util.toggleToc instead of triggering a click event
* strict comparison
* unquoted keys
* substitute single-use variable

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 25 Dec 2011 20:25:45 +0000 (20:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoUse 'newsectionheaderdefaultlevel' message when previewing a new section so that...
Alexandre Emsenhuber [Sun, 25 Dec 2011 20:23:54 +0000 (20:23 +0000)]
Use 'newsectionheaderdefaultlevel' message when previewing a new section so that it renders the same as when saving the page

12 years agoUse local context to get messages
Alexandre Emsenhuber [Sun, 25 Dec 2011 20:03:33 +0000 (20:03 +0000)]
Use local context to get messages

12 years agoAnd while I'm a it:
Alexandre Emsenhuber [Sun, 25 Dec 2011 16:36:13 +0000 (16:36 +0000)]
And while I'm a it:
* Use the commented-out code ("MW 1.6" is way old and "Revision.php 1.26" sounds like CVS)
* Don't revert to a revision whose text was deleted

12 years ago* Use WikiPage instead of Article to call doEdit()
Alexandre Emsenhuber [Sun, 25 Dec 2011 16:26:53 +0000 (16:26 +0000)]
* Use WikiPage instead of Article to call doEdit()
* Pass the revision ID to doEdit() when reverting a page

12 years ago* (bug 33367) Gendered namespaces for Czech
Niklas Laxström [Sun, 25 Dec 2011 12:34:52 +0000 (12:34 +0000)]
* (bug 33367) Gendered namespaces for Czech

12 years agoWhitespace
Niklas Laxström [Sun, 25 Dec 2011 12:32:41 +0000 (12:32 +0000)]
Whitespace

12 years agoFix incorrect encoding in RELEASE-NOTES-1.19 from r107258.
Siebrand Mazeland [Sun, 25 Dec 2011 09:48:37 +0000 (09:48 +0000)]
Fix incorrect encoding in RELEASE-NOTES-1.19 from r107258.

12 years agoRename no to nb (step 4/4): Change 'no' to 'nb' in remaining files.
Siebrand Mazeland [Sun, 25 Dec 2011 09:42:00 +0000 (09:42 +0000)]
Rename no to nb (step 4/4): Change 'no' to 'nb' in remaining files.

12 years agoFollow-up r107259: Also update $wgDummyLanguageCodes.
Siebrand Mazeland [Sun, 25 Dec 2011 09:30:47 +0000 (09:30 +0000)]
Follow-up r107259: Also update $wgDummyLanguageCodes.

12 years agoRename no to nb (step 2/4): Re-add MessagesNo.php. Falls back to 'nb'.
Siebrand Mazeland [Sun, 25 Dec 2011 09:27:07 +0000 (09:27 +0000)]
Rename no to nb (step 2/4): Re-add MessagesNo.php. Falls back to 'nb'.

12 years agoRename no to nb (step 2/4): Rename MessagesNo.php to MessagesNb.php and update Names...
Siebrand Mazeland [Sun, 25 Dec 2011 09:24:39 +0000 (09:24 +0000)]
Rename no to nb (step 2/4): Rename MessagesNo.php to MessagesNb.php and update Names.php and RELEASE-NOTES-1.19.

12 years agoRemove MessagesNb.php pending rename of no to nb.
Siebrand Mazeland [Sun, 25 Dec 2011 09:20:43 +0000 (09:20 +0000)]
Remove MessagesNb.php pending rename of no to nb.

12 years ago@since for r99863
Robin Pepermans [Sun, 25 Dec 2011 02:54:02 +0000 (02:54 +0000)]
@since for r99863

12 years agoChange require to require_once in extensions/README
Sam Reed [Sat, 24 Dec 2011 23:12:09 +0000 (23:12 +0000)]
Change require to require_once in extensions/README

12 years agoImprove/add to documentation
Sam Reed [Sat, 24 Dec 2011 23:11:25 +0000 (23:11 +0000)]
Improve/add to documentation

Add braces

Explicitly define member variable

12 years agoFollowup r107011 per Krinkle - "mediawiki.api needs to declare the mediawiki.util...
Sam Reed [Sat, 24 Dec 2011 23:09:45 +0000 (23:09 +0000)]
Followup r107011 per Krinkle - "mediawiki.api needs to declare the mediawiki.util dependency."

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Sat, 24 Dec 2011 17:03:59 +0000 (17:03 +0000)]
* Use local context to get messages
* Use Language::userTimeAndDate() instead of Language::timeanddate() to use user's timezone preference

12 years agoPer Nikerabbit, follow-up r102024: removed uneeded variable
Alexandre Emsenhuber [Sat, 24 Dec 2011 15:32:35 +0000 (15:32 +0000)]
Per Nikerabbit, follow-up r102024: removed uneeded variable

12 years agoFollowup r103945 - @since and whitespace
Niklas Laxström [Sat, 24 Dec 2011 14:40:59 +0000 (14:40 +0000)]
Followup r103945 - @since and whitespace

12 years agoFix r107197: removed 'lockmanager-fail-acquirelocks' key from messages.inc
Aaron Schulz [Sat, 24 Dec 2011 00:57:10 +0000 (00:57 +0000)]
Fix r107197: removed 'lockmanager-fail-acquirelocks' key from messages.inc

12 years ago* Follow-up r107195: these params are resource paths now, rather than hashes of the...
Aaron Schulz [Sat, 24 Dec 2011 00:43:06 +0000 (00:43 +0000)]
* Follow-up r107195: these params are resource paths now, rather than hashes of the resource paths.
* Removed lockmanager-fail-acquirelocks message; a series of lockmanager-fail-acquirelock messages are now used instead.

12 years agoUse hash key instead of key for lock manager messages. It was confusing translators.
Siebrand Mazeland [Sat, 24 Dec 2011 00:23:39 +0000 (00:23 +0000)]
Use hash key instead of key for lock manager messages. It was confusing translators.

12 years agoFU r106752: fixed call to bogus function in LocalFile::getSha1()
Aaron Schulz [Sat, 24 Dec 2011 00:19:01 +0000 (00:19 +0000)]
FU r106752: fixed call to bogus function in LocalFile::getSha1()

12 years agoIn LockManager classes:
Aaron Schulz [Sat, 24 Dec 2011 00:16:06 +0000 (00:16 +0000)]
In LockManager classes:
* Only use hash keys later on in the data flow rather than right when doLock() is called. This allows for error messages in Status objects to use human readable paths rather than ugly hash keys.
* Moved $locksHeld declaration duplication up to the base class.
* Fixed __destruct() in FSLockManager to not use bogus doSingleUnlock() lock type parameter.

12 years agoFollow-up r107187, r107188: rebuild MessagesXx.php.
Siebrand Mazeland [Sat, 24 Dec 2011 00:13:11 +0000 (00:13 +0000)]
Follow-up r107187, r107188: rebuild MessagesXx.php.

12 years agofollow up to -r107187 - remove unused message key "column" from language file
Benny Situ [Fri, 23 Dec 2011 23:55:39 +0000 (23:55 +0000)]
follow up to -r107187 - remove unused message key "column" from language file

12 years agobug24430 - patch from Chinchin, remove number of column for edit field in preference
Benny Situ [Fri, 23 Dec 2011 22:47:10 +0000 (22:47 +0000)]
bug24430 - patch from Chinchin, remove number of column for edit field in preference

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 23 Dec 2011 21:10:51 +0000 (21:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Fri, 23 Dec 2011 20:51:37 +0000 (20:51 +0000)]
* Use local context to get messages
* Use Language::userTimeAndDate() instead of Language::timeanddate()

12 years agoMoving the flatlist option to HTMLFormField to prevent code duplication per hashar...
John Du Hart [Fri, 23 Dec 2011 20:35:57 +0000 (20:35 +0000)]
Moving the flatlist option to HTMLFormField to prevent code duplication per hashar on r100551

12 years agoIn FileBackendBase/FileBackend:
Aaron Schulz [Fri, 23 Dec 2011 18:59:39 +0000 (18:59 +0000)]
In FileBackendBase/FileBackend:
* Changed concatenate to store to a specified temp FS file rather than a final storage destination. This makes it better fit the use case (chunked upload), so we can avoid extra copying around. Subclasses no longer have to implement this function now as well.
* Added extensionFromPath() helper function.
* Moved createInternal() up a bit and fixed @see comments pointing to the wrong functions.
In FSFileBackend:
* Use parent implementation of doConcatenateInternal().
In FileRepo/File:
* Added FileRepo::ALLOW_STALE and made thumbnail transforms use it.

12 years agoBugzilla bug11612 - Make watchlist max days preference setting reflect the max days...
Benny Situ [Fri, 23 Dec 2011 18:55:04 +0000 (18:55 +0000)]
Bugzilla bug11612 - Make watchlist max days preference setting reflect the max days in Recent Changes

12 years ago[Core JS] scan all /phase3/, change certain constructors to literals
Krinkle [Fri, 23 Dec 2011 17:03:25 +0000 (17:03 +0000)]
[Core JS] scan all /phase3/, change certain constructors to literals
* new String, new Boolean, new Number
-- should not be used since they don't compare very well:
; 5 !== new Number( 5 ) // true
; !!new Boolean( false ) // true, objects are truethy
-- If type conversion is intended, they should be used as
   functions instead of constructors.
* new Array, new Object
-- literals are shorter, no point in not using them.

12 years agoLocalization update for magic words in he.
Rotem Liss [Fri, 23 Dec 2011 14:47:41 +0000 (14:47 +0000)]
Localization update for magic words in he.

12 years ago* Added 'latest' parameter to functions that get information about a file. This will...
Aaron Schulz [Fri, 23 Dec 2011 09:43:28 +0000 (09:43 +0000)]
* Added 'latest' parameter to functions that get information about a file. This will get the latest version among all storage nodes. Non-distributed backends can ignore this.
* In doOperations(), ignore 'nonLocking' unless 'ignoreErrors' is set. Split out a doOperationsInternal() function so the sanity check could go in doOperations().
* Moved getFileList() down a bit.
* Documentation tweaks.

12 years agoUse getPath, all operations are on filerepo level no need to get a local path. Follow...
Jan Gerber [Fri, 23 Dec 2011 09:30:02 +0000 (09:30 +0000)]
Use getPath, all operations are on filerepo level no need to get a local path. Follow up r107064

12 years agoFollow-up r98698: Reduce amount of ipv6 spam in FileCacheBase::incrMissesRecent(...
Aaron Schulz [Fri, 23 Dec 2011 07:41:23 +0000 (07:41 +0000)]
Follow-up r98698: Reduce amount of ipv6 spam in FileCacheBase::incrMissesRecent() per CR

12 years agoFix a session invalidation error when using LdapAuthentication.
Ryan Lane [Fri, 23 Dec 2011 01:26:52 +0000 (01:26 +0000)]
Fix a session invalidation error when using LdapAuthentication.

12 years agoApplying patch from bug 33335 (from Erwin Dokter). Followup to r105280
Rob Lanphier [Fri, 23 Dec 2011 00:22:01 +0000 (00:22 +0000)]
Applying patch from bug 33335 (from Erwin Dokter).  Followup to r105280
and r106884.
* td.diff-deletedline gets a softer yellow background
* td.diff-addedline gets a lighter blue background,
* td.diff-context gets slightly lighter grey background.
* Instead of only the changed text being displayed with white-space:pre-wrap,
the entire line in a cell is.
* The font-size is changed from 'smaller' to 88%

12 years agoDocumentation fixes
Aaron Schulz [Thu, 22 Dec 2011 23:18:57 +0000 (23:18 +0000)]
Documentation fixes

12 years agoAdd comments explaining that the funky multiple Location headers stuff is a CURL...
Brion Vibber [Thu, 22 Dec 2011 23:12:44 +0000 (23:12 +0000)]
Add comments explaining that the funky multiple Location headers stuff is a CURL artifact, and that the code will need updating if bug 29232 is done (high-level handling of http redirects)

Followup r94881, r106948.

12 years agorephrase r106992 release notes
Krinkle [Thu, 22 Dec 2011 22:30:52 +0000 (22:30 +0000)]
rephrase r106992 release notes

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 22 Dec 2011 20:37:55 +0000 (20:37 +0000)]
Use local context to get messages

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 22 Dec 2011 20:15:58 +0000 (20:15 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoI hate eol w/s
Mark A. Hershberger [Thu, 22 Dec 2011 18:12:36 +0000 (18:12 +0000)]
I hate eol w/s

12 years ago(bug 12262) Follow-up r102026: update ul margin in shared.css
Robin Pepermans [Thu, 22 Dec 2011 15:47:44 +0000 (15:47 +0000)]
(bug 12262) Follow-up r102026: update ul margin in shared.css

12 years agoUse ⌘ in for Mac keyboard shortcuts
Antoine Musso [Thu, 22 Dec 2011 13:42:14 +0000 (13:42 +0000)]
Use ⌘ in for Mac keyboard shortcuts

Looks better to the eye when playing with your User:foo/style.css

http://en.wikipedia.org/wiki/Command_key

12 years agoapply CSS::Janus when user preview its CSS style
Antoine Musso [Thu, 22 Dec 2011 13:35:37 +0000 (13:35 +0000)]
apply CSS::Janus when user preview its CSS style

follow up r94421

12 years ago- add comment to document us_chunk_inx in sql file
Jan Gerber [Thu, 22 Dec 2011 13:18:49 +0000 (13:18 +0000)]
- add comment to document us_chunk_inx in sql file
- fix chunk upload to work with recent filerepo changes
Follow up r104687

12 years agoFixed a typo in r107054
Max Semenik [Thu, 22 Dec 2011 11:11:59 +0000 (11:11 +0000)]
Fixed a typo in r107054

12 years agodo not evaluate '<?php' line
Antoine Musso [Thu, 22 Dec 2011 11:06:23 +0000 (11:06 +0000)]
do not evaluate '<?php' line

This happen when you are sending to eval.php a php file. The first line
is the string '<?php' which is passed to eval(). Boom!
This patch skip that string.

Example usage:
 $ cat somefile.php
 <?php
 echo "Working!\n";
 $

 $ cat somefile.php | php maintenance/eval.php
 Working!
 $

12 years agoremove bug 31921 from 1.19 RN
Antoine Musso [Thu, 22 Dec 2011 09:25:47 +0000 (09:25 +0000)]
remove bug 31921 from 1.19 RN

Fix was merged in REL1_18 by r107046

12 years agoMoved SQLite test .sql files to the common test data directory
Max Semenik [Thu, 22 Dec 2011 09:18:39 +0000 (09:18 +0000)]
Moved SQLite test .sql files to the common test data directory

12 years agoMake apibase of $wgForeignFileRepos (InstantCommons) protocol relative too
Raimond Spekking [Thu, 22 Dec 2011 08:33:37 +0000 (08:33 +0000)]
Make apibase of $wgForeignFileRepos (InstantCommons) protocol relative too

12 years agoAdd some letters per https://incubator.wikimedia.org/w/index.php?diff=666382&oldid...
Robin Pepermans [Thu, 22 Dec 2011 01:27:59 +0000 (01:27 +0000)]
Add some letters per https://incubator.wikimedia.org/w/index.php?diff=666382&oldid=664736

12 years ago* FU r106752: de-uglified Setup.php by moving most of the b/c code into FileBackendGr...
Aaron Schulz [Thu, 22 Dec 2011 01:06:19 +0000 (01:06 +0000)]
* FU r106752: de-uglified Setup.php by moving most of the b/c code into FileBackendGroup. Deferred registration of file backends and lock managers to the respective singleton() functions for the group objects.
* Refactored FileRepo::initZones() to require the specific zones; nothing was using it differently.
* Removed deleted zone check in deleteBatch(), a similar error will instead trigger with the initZones() call as needed.
* Added $wgLocalFileRepo comment.
* Updated tests.

12 years agoUpdate documentation on params method of Message class to indicate it can either...
Brian Wolff [Thu, 22 Dec 2011 00:51:43 +0000 (00:51 +0000)]
Update documentation on params method of Message class to indicate it can either be varags, or it can also
take an array of all the parameters as the first argument.

12 years agoFU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404...
Aaron Schulz [Thu, 22 Dec 2011 00:43:11 +0000 (00:43 +0000)]
FU r105512: urldecode() the file and thumb name in wfExtractThumbParams() for 404 handling as needed.

12 years agoadded missing UploadStash exceptions to AutoLoader
Ian Baker [Thu, 22 Dec 2011 00:11:38 +0000 (00:11 +0000)]
added missing UploadStash exceptions to AutoLoader

12 years ago[mediawiki.api] bug fixes
Krinkle [Wed, 21 Dec 2011 23:56:02 +0000 (23:56 +0000)]
[mediawiki.api] bug fixes

* error callback of some convenience functions was broken. Second argument to get() is ajaxOptions, there is no third argument.

12 years ago[mediawiki.api] clean up
Krinkle [Wed, 21 Dec 2011 23:52:37 +0000 (23:52 +0000)]
[mediawiki.api] clean up

* Adding return values to most of the ajax functions so that the jqXHR object (originally returned by jQuery.ajax) is available. Some functions documented they already did this, some don't. Now they all do and are also documented as such.

* Renaming a few 'callback' arguments to 'success' to avoid confusion with 'error'.

* Removed unused variables
** mw.Api's instance this.url was unused
** var cachedToken was unused in mediawiki.api.titleblacklist.js

* Making closure argument order the same and referencing mediaWiki as a global (mw is something thought not to be a global but mediaWiki certainly is, no need to access window from the global scope and then the mediaWiki property of it). Also renamed any used of $j to $. Adding 'undefined' to the closure arguments where missing.

* Re-written the mw.Api constructor's logic for options. Now keeping a defaultOptions privately "statically" cached outside the constructor and using that to build the options object.

* Made all non-block comments the same comment style (some were /* */ or /* \n */)

* Completed parameter documentation and wrote TODO as @todo and added an example use for mw.Api in the documentation.

* Some other random whitespacing, line breaking, merged var statement, and moved them out of blocks (since JS doesn't have block scope) into the main function body for clarity. And some other random JS Lint/JS Hint stuff.

* Added comment to api.titleblacklist module about the module not being in core but in the TitleBlacklist extension.

12 years ago* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id [patch by Waldir]
Danny B [Wed, 21 Dec 2011 23:19:24 +0000 (23:19 +0000)]
* (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id [patch by Waldir]

12 years agofollow-up to r106912, making change to correct branch this time
Ryan Kaldari [Wed, 21 Dec 2011 22:54:22 +0000 (22:54 +0000)]
follow-up to r106912, making change to correct branch this time

12 years agoThis isn't a doc comment, so shouldn't start with /** (and it messes up my syntax...
Ian Baker [Wed, 21 Dec 2011 22:48:00 +0000 (22:48 +0000)]
This isn't a doc comment, so shouldn't start with /** (and it messes up my syntax highlighting)

12 years agochanged instances of sample.com to example.com per RFC 2606
Ian Baker [Wed, 21 Dec 2011 22:22:01 +0000 (22:22 +0000)]
changed instances of sample.com to example.com per RFC 2606

12 years ago[Core JS] mw.util.addCSS: Insert style tag into dom before setting cssText
Krinkle [Wed, 21 Dec 2011 22:08:52 +0000 (22:08 +0000)]
[Core JS] mw.util.addCSS: Insert style tag into dom before setting cssText
* Fixes bug 33305

12 years ago[Core JS] Applying conventions to mw.util
Krinkle [Wed, 21 Dec 2011 22:06:02 +0000 (22:06 +0000)]
[Core JS] Applying conventions to mw.util
- new recommended closure format
- fixing repeated var statements, or var statement inside blocks (there is no block scope in JavaScript) and moving them to the top of the function
- line breaking, indention, white space
- and more.. see also https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

12 years ago* FU r106752: unbreak urls to ForeignAPIRepo file thumbnails. FileRepo no longer...
Aaron Schulz [Wed, 21 Dec 2011 21:29:16 +0000 (21:29 +0000)]
* FU r106752: unbreak urls to ForeignAPIRepo file thumbnails. FileRepo no longer uses bogus <public root URL>/thumb default for the thumnail URL when the public root URL wasn't even set. This was making ForeignAPIRepo not set it since it saw that it was already set.
* Cleaned up and added some missing sanity checks for scriptDirUrl member in FileRepo. Made some related documentation tweaks.
* Removed pointless getRepo() call in File.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 21 Dec 2011 20:44:11 +0000 (20:44 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
Aaron Schulz [Wed, 21 Dec 2011 20:39:50 +0000 (20:39 +0000)]
* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
* Made File::maybeDoTransform() use the FileRepo::store() and a new File::getThumbRel() function. Looks cleaner and loosens FileBackend coupling.
* Also made storeTemp() use FileRepo::SKIP_LOCKING for performance.
* Killed some useless initZones() calls in FileRepo. Extensions may not even use these zones. Likewise, it could make tests fail even though they don't those zones. We already do the sanity with some prepare() calls in storeBatch().
* Removed FileRepo::SKIP_VALIDATION, not used by anything now.
* Moved getUrlRel() down a bit.

12 years agoCode style: move a couple htmlspecialchars() down to usage so it's clear where escapi...
Brion Vibber [Wed, 21 Dec 2011 19:17:39 +0000 (19:17 +0000)]
Code style: move a couple htmlspecialchars() down to usage so it's clear where escaping happens

12 years ago(bug 33246) News icon shown for news:// URLs but not for news: URLs. Patch by Erwin...
Roan Kattouw [Wed, 21 Dec 2011 18:58:27 +0000 (18:58 +0000)]
(bug 33246) News icon shown for news:// URLs but not for news: URLs. Patch by Erwin Dokter

12 years agoDeclare constant default values directly in the class definition and removed the...
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:53:00 +0000 (18:53 +0000)]
Declare constant default values directly in the class definition and removed the constructor since it's useless now

12 years agoUse LinkCache::singleton()->clear() instead of using a local variable so that I can...
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:46:39 +0000 (18:46 +0000)]
Use LinkCache::singleton()->clear() instead of using a local variable so that I can see what LinkCache::singleton() will be used for directly in grep

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:44:25 +0000 (18:44 +0000)]
* Use local context to get messages
* Use Language::userTimeAndDate() and related instead of Language::timeanddate() where needed
* Factorised some calls to member functions

12 years agoUse accessor instead of the member variable directly and factorise the calls to it
Alexandre Emsenhuber [Wed, 21 Dec 2011 18:40:02 +0000 (18:40 +0000)]
Use accessor instead of the member variable directly and factorise the calls to it

12 years agotests for r94881 which interprets relative Location: headers
Antoine Musso [Wed, 21 Dec 2011 15:31:30 +0000 (15:31 +0000)]
tests for r94881 which interprets relative Location: headers