lhc/web/wiklou.git
12 years agoCorrection in the test comment, followup r107824
Santhosh Thottingal [Fri, 6 Jan 2012 06:56:01 +0000 (06:56 +0000)]
Correction in the test comment, followup r107824

12 years agor108192: Explicitly set flags for RecursiveDirectoryIterator constructor
Aaron Schulz [Fri, 6 Jan 2012 06:35:54 +0000 (06:35 +0000)]
r108192: Explicitly set flags for RecursiveDirectoryIterator constructor

12 years ago* Cleanup for r108175: made if easier for extensions to interact with each other...
Aaron Schulz [Fri, 6 Jan 2012 06:16:05 +0000 (06:16 +0000)]
* Cleanup for r108175: made if easier for extensions to interact with each other in TitleReadWhitelist hook. A handler can set $whitelisted to true to whitelist the page or it can set it to false and return false (most restrictive wins).
* Added some hook doc comments.

12 years agoFixes for r106752:
Aaron Schulz [Fri, 6 Jan 2012 05:15:51 +0000 (05:15 +0000)]
Fixes for r106752:
* Make sure FSFileIterator::current() directly returns the string path and that it is relative to the directory being searched.
* Fixed silly bug in testGetFileList that masked any bugs.
* Added a few code comments.

12 years agoFix a race condition in classic edit toolbar setup
Brion Vibber [Fri, 6 Jan 2012 01:38:26 +0000 (01:38 +0000)]
Fix a race condition in classic edit toolbar setup

mediawiki.action.edit used to call mw.toolbar.init on its own during DOMReady -- this required that the module already be loaded *before* DOMReady, *and* that it be fully loaded before the immedate-execution code that sets up the default toolbar items (output from EditPage.php).
This failed since we've gone fully async in the bottom-loading items, and could result in failed calls to mw.toolbar.addButton.

Wrapped those immediate calls in a mediawiki.loader.using call to ensure they're run after the module is loaded, and moved the mw.toolbar.init call into that section so we guarantee it gets run first.

12 years agoPartially reverted r108111: we can't assume subclasses put thumbnails in the...thumbn...
Aaron Schulz [Thu, 5 Jan 2012 23:35:38 +0000 (23:35 +0000)]
Partially reverted r108111: we can't assume subclasses put thumbnails in the...thumbnails zone. They might override the thumbnail path functions.

12 years agoResourceLoader: Add an experimental option to move the main module loading queue...
Roan Kattouw [Thu, 5 Jan 2012 23:32:41 +0000 (23:32 +0000)]
ResourceLoader: Add an experimental option to move the main module loading queue (the bottom queue) from the bottom of the <body> up into the <head> , while still being loaded asynchronously. This makes them load earlier, which should make the page load faster. This is the product of a long discussion on bug 27488

* Added a "blocking" state to mw.loader . When loading scripts while the document is not ready, the loader will use document.write() if blocking is true, and append to the <body> or the <head> if blocking is false. If the document is ready, the loader will always append to the <body>
* Enable blocking mode while loading the top queue, and disable it after. This ensures that modules in the top queue are still loaded in a blocking way as they were before
* If $wgResourceLoaderExperimentalAsyncLoading is true, the bottom queue is also loaded in the head, but with blocking mode disabled. Otherwise, it's loaded at the bottom of the <body> as before
* scripts-only and messages-only requests need special treatment:
** in the top queue, they can continue to use <script src="..."> tags because they are blocking
** if the bottom queue is at the bottom of the <body> (experimental async loading disabled), they can continue to use <script src="..."> tags as before
** if the bottom queue is in the <head> (experimental async loading enabled), they cannot use <script src="..."> tags, because those would block. Instead, call mw.loader.load() on the load.php URL

12 years agoMake sure that if we fail to read the App13 (iptc) block of a JPG file, that that...
Brian Wolff [Thu, 5 Jan 2012 23:25:39 +0000 (23:25 +0000)]
Make sure that if we fail to read the App13 (iptc) block of a JPG file, that that doesn't block other metadata from being read. Also makes sure if more then one app13 block is in the file, they are all read, not just the last one that appears in the file (This required some changes to tests since before the intermediate value was just one value, now its an array of all such blocks)

12 years agoXCF: remove var_dump() statement
Antoine Musso [Thu, 5 Jan 2012 23:01:24 +0000 (23:01 +0000)]
XCF: remove var_dump() statement

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 5 Jan 2012 21:31:37 +0000 (21:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoPer request of Aaron Schulz, follow-up r102187: added new 'TitleReadWhitelist' hook...
Alexandre Emsenhuber [Thu, 5 Jan 2012 20:29:53 +0000 (20:29 +0000)]
Per request of Aaron Schulz, follow-up r102187: added new 'TitleReadWhitelist' hook to allow extensions to bypass core (and other extensions) checks to allow an user to read the page

12 years agoPer Nikerabbit, fix for r107637: added @since
Alexandre Emsenhuber [Thu, 5 Jan 2012 19:05:02 +0000 (19:05 +0000)]
Per Nikerabbit, fix for r107637: added @since

12 years agoFollowup r107932
Sam Reed [Thu, 5 Jan 2012 18:49:19 +0000 (18:49 +0000)]
Followup r107932

Check random class to be isntantiated is a subclass of DatabaseBase

12 years agoFollow-up r108137: @since
Max Semenik [Thu, 5 Jan 2012 18:05:54 +0000 (18:05 +0000)]
Follow-up r108137: @since

12 years agoFollow-up r108147. PLURAL in message.
Brian Wolff [Thu, 5 Jan 2012 17:56:51 +0000 (17:56 +0000)]
Follow-up r108147. PLURAL in message.

12 years agoFor new 'export all' feature, cleanup whitepspace, remove redundant check, add docume...
Greg Sabino Mullane [Thu, 5 Jan 2012 17:10:07 +0000 (17:10 +0000)]
For new 'export all' feature, cleanup whitepspace, remove redundant check, add documentation. Bug 10574y

12 years agoadd basic XCF pictures for testing purpose
Antoine Musso [Thu, 5 Jan 2012 16:33:52 +0000 (16:33 +0000)]
add basic XCF pictures for testing purpose

12 years ago(bug 33456) show $wgQueryCacheLimit on cached query pages, so users know that the...
Brian Wolff [Thu, 5 Jan 2012 16:14:52 +0000 (16:14 +0000)]
(bug 33456) show $wgQueryCacheLimit on cached query pages, so users know that the results are artificially cut off, and its not just that there is only 1000 wanted files (or whatever else) on the wiki.

12 years ago(bug 33321. Sort of) Adding a line to MediaWiki:Sidebar that contains a pipe, but...
Brian Wolff [Thu, 5 Jan 2012 15:34:26 +0000 (15:34 +0000)]
(bug 33321. Sort of) Adding a line to MediaWiki:Sidebar that contains a pipe, but doesn't
have any pipes after being transformed by MessageCache, causes exception on
all pages.

This can happen with lines like:
**{{#if:yes|Something}}

Thank you to liangent for figuring out how to escape a | without {{!}} existing and &#124; not working.

12 years agoexplanations by Erwin Dokter on bug 33496
Antoine Musso [Thu, 5 Jan 2012 15:06:49 +0000 (15:06 +0000)]
explanations by Erwin Dokter on bug 33496

12 years agorewrite getXCFMetaData() to get ride of im identify
Antoine Musso [Thu, 5 Jan 2012 14:48:55 +0000 (14:48 +0000)]
rewrite getXCFMetaData() to get ride of im identify

By reading the file header and unpacking the data, we can avoid
shelling out to imagemagick 'identify'. Save up some CPU cycles :D

An XCF is made of a canvas of a given width / height, the various
layers are applied to it which must fit in the canvas. So we just
use the canvas size :-)

I do not think we have any usage for channels count, so I have just
skip that part. I am not sure it makes any sense when the picture
can be made of several layers each using different channels count.

Bits per color is always 8 per definition. Grayscale is 0 - 255
and indexed palette is 256 colors at most.

XCF spec:
http://svn.gnome.org/viewvc/gimp/trunk/devel-docs/xcf.txt?view=markup

pack() / unpack() is familiar to perl monkeys

Fully reimplements r107351

12 years agoAccessor for LinksUpdate's parser output
Max Semenik [Thu, 5 Jan 2012 13:00:37 +0000 (13:00 +0000)]
Accessor for LinksUpdate's parser output

12 years agoparserTest need to clone user_former_groups table
Antoine Musso [Thu, 5 Jan 2012 11:03:53 +0000 (11:03 +0000)]
parserTest need to clone user_former_groups table

Not sure why it is suddenly needed.

12 years agoAdd additional parameter $altUserName to Linker::userLink to make it possible to...
Siebrand Mazeland [Thu, 5 Jan 2012 09:33:46 +0000 (09:33 +0000)]
Add additional parameter $altUserName to Linker::userLink to make it possible to override the displayed user name.
Renamed $userText to $userName following Nikerabbit's advice.

12 years agoadditional monospaced font-family hacks
Antoine Musso [Thu, 5 Jan 2012 09:24:16 +0000 (09:24 +0000)]
additional monospaced font-family hacks

  font-family: monospace, monospace;
Is elegant and has my preference :-)

  font-family: monospace, DOESNOTEXISTREALLY;
Really make it obvious

follow r108123

12 years agotest rendering font-family for monospaced fonts
Antoine Musso [Thu, 5 Jan 2012 09:16:13 +0000 (09:16 +0000)]
test rendering font-family for monospaced fonts

follow r108112

12 years ago* Made use of FileBackend function 'latest' param in FileOp.
Aaron Schulz [Thu, 5 Jan 2012 06:18:36 +0000 (06:18 +0000)]
* Made use of FileBackend function 'latest' param in FileOp.
* Added FileBackend process cache for fileExists(), getFileTimestamp(), and getLocalReference().
* Refactored getFileSha1Base36() into parent class and subclass functions.
* Removed some FileBackendMultiWrite comment duplication.

12 years agoBug 33514 - Make category "columns" (table cells) equal width
Mark A. Hershberger [Thu, 5 Jan 2012 04:53:05 +0000 (04:53 +0000)]
Bug 33514 - Make category "columns" (table cells) equal width
Author: Erwin Dokter

12 years agoFix Bug 33496 - Misleading comment regarding preformatted font in commonElements.css
Mark A. Hershberger [Thu, 5 Jan 2012 02:24:29 +0000 (02:24 +0000)]
Fix Bug 33496 - Misleading comment regarding preformatted font in commonElements.css
Author: Erwin Dokter

12 years agoIn SpecialUploadStash:
Aaron Schulz [Thu, 5 Jan 2012 01:58:05 +0000 (01:58 +0000)]
In SpecialUploadStash:
* Updated outputLocallyScaledThumb() and outputLocalFile() to handle changes in r106752.
In MediaTransformOutput:
* Added a storage path field to the transformation output object and set it in  File::maybeDoTransform().
In File:
* Fixed maybeDoTransform() handling if repo member is not set and made it fully respect $wgIgnoreImageErrors.
In BitmapHandler:
* Don't set bogus path if TRANSFORM_LATER in doTransform() for deffered renderings.

12 years agoIn FSFile:
Aaron Schulz [Thu, 5 Jan 2012 01:47:00 +0000 (01:47 +0000)]
In FSFile:
* Added getMimeType() and extensionFromPath() functions.
* A few other minor code and comment cleanups.

12 years agoAdded a bit to StreamFile docs
Aaron Schulz [Thu, 5 Jan 2012 01:33:58 +0000 (01:33 +0000)]
Added a bit to StreamFile docs

12 years ago[mediawiki.loader] fix numerous bugs and edge cases discovered with Roan on Etherpad...
Krinkle [Thu, 5 Jan 2012 01:30:07 +0000 (01:30 +0000)]
[mediawiki.loader] fix numerous bugs and edge cases discovered with Roan on Etherpad/Skype

* 'undefined' state removed:
State 'undefined' has been removed. This was half-supported, probably with the intention to support loading of modules that are registered server side after the startup module was loaded (either because the server had a deployment while the user was browsing the page, or because loader.load calls in HTML document or loader.register where cached and out of sync. That's not unlikely to happen after deployment, after which there is a 5 minute window of cached startup modules in peoples browser cache but fresh HTML documents.

Instead of filling in the missing registry with no information, simply don't support this. Shouldn't break anything as it wasn't supported all the way.

* Document state 'missing'. Used by the load.php when a requested module doesn't exist according to the server.

* Fix recurse(). Previously it failed to recognize circular dependencies, because "unresolved" started as an empty array (given by resolve(). See also test cases at bottom of commitmsg.
* Fix recurse() even more. It was using inArray as a parameter to [].splice(), which is bad as inArray can be -1, in which case splice(-1,1) will remove the last item in the array, instead of the one at the index. Fortunately this was never exploited as 'unresolved=[]' is starting point, so nothing to delete.

* Fix resolve(). Don't return an empty array, which is contrary to it's (now documented) behavior of including the requested module in the return array. Instead letting recurse() handle it.

* Add magic filter to filter() named "unregistered" which  will reduce the set to only module names that are not in the registry.

* Removing call to request() from the bottom bottom of mw.loader.implement. This can't be needed as before load.php is called the toes implement, all dependencies are put in queue and set to "loading" state, this queue is build first and then the load requests happen. At point implement is called, it's dependencies must already be in the queue. If any unloaded dependencies at moment of implementation (which is very common), the next implement will call execute which does handlePending, which will execute previously implemented modules that were waiting for dependencies to arrive.

* Make load() and using() no longer return meaningless booleans, they were undocumented and meaningless as they are either used as voids or with callbacks.

* Bring consistency in handling input. If direct input to a loader function is invalid or contains inexistent modules, throw an exception. Otherwise use error callback.
-- with one exception, that is the raw module list passed to mw.loader.load, those are not related to each other and should continue even if there is an inexistent module in there.
-- For example if a deployment occurs, adding an extension with modules loaded on a particular page. The user will have a startup module in cache up to 5 minutes that doesn't have this module's registry yet. In that case the new modules should simply be ignored. Before this commit they were also silently ignored, but not by skipping them. previously inexistent/undefined modules would give ok-callback of using() instantly, because filter(['ready'], modules) is the same as modules when it contains nothing.

12 years agoFollowup r105809; Split up the tests with a dataProvider and add a round trip test.
Daniel Friesen [Thu, 5 Jan 2012 00:26:13 +0000 (00:26 +0000)]
Followup r105809; Split up the tests with a dataProvider and add a round trip test.

12 years agoTidy up nested assignments
Sam Reed [Wed, 4 Jan 2012 21:34:56 +0000 (21:34 +0000)]
Tidy up nested assignments

12 years agoTidy up/rearrange RELEASE-NOTES-1.19 slightly
Sam Reed [Wed, 4 Jan 2012 21:34:02 +0000 (21:34 +0000)]
Tidy up/rearrange RELEASE-NOTES-1.19 slightly

12 years ago* (bug 33525) clearTagHooks doesn't clear function hooks.
Sam Reed [Wed, 4 Jan 2012 21:30:06 +0000 (21:30 +0000)]
* (bug 33525) clearTagHooks doesn't clear function hooks.
* (bug 33523) Function tag hooks don't appear on Special:Version.

Patches by Nikola Kovacs

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 4 Jan 2012 21:00:47 +0000 (21:00 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRedo r107066 properly: apply CSSJanus to user CSS previews when needed. Ping r94421
Roan Kattouw [Wed, 4 Jan 2012 20:01:29 +0000 (20:01 +0000)]
Redo r107066 properly: apply CSSJanus to user CSS previews when needed. Ping r94421

12 years ago[mediawiki.debug] add implied semi-colon
Krinkle [Wed, 4 Jan 2012 19:14:43 +0000 (19:14 +0000)]
[mediawiki.debug] add implied semi-colon
* poke r107610

12 years ago[JSTesting] rm redundant comment, there are no more "*" behind any entries
Krinkle [Wed, 4 Jan 2012 19:13:45 +0000 (19:13 +0000)]
[JSTesting] rm redundant comment, there are no more "*" behind any entries

12 years ago[JSTesting] fix case typo in file path
Krinkle [Wed, 4 Jan 2012 19:11:45 +0000 (19:11 +0000)]
[JSTesting] fix case typo in file path
* twn:
exception 'MWException' with message 'ResourceLoaderFileModule::readScriptFiles: script file not found: "/www/sandwiki/tests/qunit/suites/resources/mediawiki/mediawiki.title.test.js"' in /www/sandwiki/includes/resourceloader/ResourceLoaderFileModule.php:518

12 years agore r102301 — apply Krinkle's suggested fix.
Mark A. Hershberger [Wed, 4 Jan 2012 19:09:03 +0000 (19:09 +0000)]
re r102301 — apply Krinkle's suggested fix.

12 years agofollow-up to r106912 - NULL to null
Ryan Kaldari [Wed, 4 Jan 2012 19:01:12 +0000 (19:01 +0000)]
follow-up to r106912 - NULL to null

12 years agore r106025 — apply follow up from Luca Fulchir
Mark A. Hershberger [Wed, 4 Jan 2012 18:01:10 +0000 (18:01 +0000)]
re r106025 — apply follow up from Luca Fulchir

12 years agoBug 33494 - Remove redundant CSS from chick/main.css
Sam Reed [Wed, 4 Jan 2012 17:30:09 +0000 (17:30 +0000)]
Bug 33494 - Remove redundant CSS from chick/main.css

Patch by Erwin Dokter

12 years agoRevert r107066, see CR comments for full rationale. Basically this moves the previewe...
Roan Kattouw [Wed, 4 Jan 2012 17:15:25 +0000 (17:15 +0000)]
Revert r107066, see CR comments for full rationale. Basically this moves the previewed CSS to the wrong place in the <head> while not actually applying Janus

12 years agofollow up r107932 with w/s fixes
Mark A. Hershberger [Wed, 4 Jan 2012 16:43:46 +0000 (16:43 +0000)]
follow up r107932 with w/s fixes

12 years agoAttempt to avoid a warning I got during input:
Mark A. Hershberger [Wed, 4 Jan 2012 16:29:01 +0000 (16:29 +0000)]
Attempt to avoid a warning I got during input:

$ 7z x -so ../dewikisource-20111012-pages-meta-history.xml.7z | php maintenance/importDump.php

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)

Processing archive: ../dewikisource-20111012-pages-meta-history.xml.7z

Extracting  dewikisource-20111012-pages-meta-history.xml
PHP Notice:  Undefined index: wgExtensionAliasesFiles in /home/mah/work/code/mediawiki/mw-
svn/includes/cache/CacheDependency.php on line 386
PHP Stack trace:
PHP   1. {main}() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:0
PHP   2. require_once() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:287
PHP   3. BackupReader->execute() /home/mah/work/code/mediawiki/mw-svn/maintenance/doMaintenance.php:105
PHP   4. BackupReader->importFromStdin() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:93
PHP   5. BackupReader->importFromHandle() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:249
PHP   6. WikiImporter->doImport() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:282
PHP   7. WikiImporter->handlePage() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:411
PHP   8. WikiImporter->processTitle() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:534
PHP   9. Title->userCan() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:788
PHP  10. Title->getUserPermissionsErrorsInternal() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1557
PHP  11. Title->checkSpecialsAndNSPermissions() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:2118
PHP  12. Title->getNsText() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1728
PHP  13. Language->needsGenderDistinction() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:723
PHP  14. LocalisationCache->getItem() /home/mah/work/code/mediawiki/mw-svn/languages/Language.php:442
PHP  15. LocalisationCache->loadItem() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:218
PHP  16. LocalisationCache->initLanguage() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:283
PHP  17. LocalisationCache->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:395
PHP  18. GlobalDependency->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:367

12 years agoapplication/vnd.oasis.opendocument.database [OFFICE]
Antoine Musso [Wed, 4 Jan 2012 16:24:41 +0000 (16:24 +0000)]
application/vnd.oasis.opendocument.database [OFFICE]

12 years agoFix Bug 29102 - Upgrade fails "Unknown character set: 'mysql4'
Mark A. Hershberger [Wed, 4 Jan 2012 15:52:48 +0000 (15:52 +0000)]
Fix Bug 29102 - Upgrade fails "Unknown character set: 'mysql4'

Fix suggested by Tremault and tested by maanto.  Confirmed by me.

12 years agomime.types: add opendoc database
Antoine Musso [Wed, 4 Jan 2012 15:14:08 +0000 (15:14 +0000)]
mime.types: add opendoc database

application/vnd.oasis.opendocument.database odb

12 years agomime.types: sort opendocument entries
Antoine Musso [Wed, 4 Jan 2012 15:12:08 +0000 (15:12 +0000)]
mime.types: sort opendocument entries

Sorted all application/vnd.oasis.opendocument entries, no other change.

12 years agoConsistency tweak.
Siebrand Mazeland [Wed, 4 Jan 2012 14:52:14 +0000 (14:52 +0000)]
Consistency tweak.

12 years agoXCF format: code style/comment
Antoine Musso [Wed, 4 Jan 2012 13:37:28 +0000 (13:37 +0000)]
XCF format: code style/comment

* Saved a level of indentation by returning early on command failure
* $md -> $metadata

Follow r107351

12 years agodocument getImageSize() return format
Antoine Musso [Wed, 4 Jan 2012 13:22:01 +0000 (13:22 +0000)]
document getImageSize() return format

Return array should return the same kind of array that PHP
internal method getimagesize() returns. See upstream doc:

  http://www.php.net/getimagesize

12 years agoenhance size tooltip on changelist
Antoine Musso [Wed, 4 Jan 2012 11:33:35 +0000 (11:33 +0000)]
enhance size tooltip on changelist

follow r104085

12 years agoGuessing a typo fix, could also be 'is a feed' but neither expression really opens...
Niklas Laxström [Wed, 4 Jan 2012 11:03:33 +0000 (11:03 +0000)]
Guessing a typo fix, could also be 'is a feed' but neither expression really opens to me

12 years agoJSTesting: javascripttest-pagetext-skin msg
Antoine Musso [Wed, 4 Jan 2012 10:51:57 +0000 (10:51 +0000)]
JSTesting: javascripttest-pagetext-skin msg

* added colon in the message
* reworded message

Follow r107919

12 years agoMade installer not install on SQLite less than 3.3.7, would prevent stuff like bug...
Max Semenik [Wed, 4 Jan 2012 10:41:39 +0000 (10:41 +0000)]
Made installer not install on SQLite less than 3.3.7, would prevent stuff like bug 25746. Also, threw MSSQL out of release notes - it can't be installed through the usual means.

12 years agoJSTesting: escape message
Antoine Musso [Wed, 4 Jan 2012 10:35:11 +0000 (10:35 +0000)]
JSTesting: escape message

Replaced call to wfMsg() by wfMsgHtml() just to be safe.
Per cr on r107919.

12 years agoJSTesting: make sure wrapSummaryHtml is given a valid state
Antoine Musso [Wed, 4 Jan 2012 10:31:02 +0000 (10:31 +0000)]
JSTesting: make sure wrapSummaryHtml is given a valid state

* wrapSummaryHTML() now really need one of three states or an exception
  is thrown.
* Moved a parameter incorrectly passed to addHtml() up to the previous
  wrapSummaryHtml() code. Per CR on r107919

12 years agoResourceLoaderTestModules doc: better wording
Antoine Musso [Wed, 4 Jan 2012 10:18:49 +0000 (10:18 +0000)]
ResourceLoaderTestModules doc: better wording

follow r107993

12 years agoMade WebInstaller::showStatusMessage() look uniformly for one and multiple errors...
Max Semenik [Wed, 4 Jan 2012 10:08:59 +0000 (10:08 +0000)]
Made WebInstaller::showStatusMessage() look uniformly for one and multiple errors/warnings per status

12 years agorevert r107006
Antoine Musso [Wed, 4 Jan 2012 09:08:16 +0000 (09:08 +0000)]
revert r107006

(bug 23427) Introduced {{PAGEID}} variable to expose page.page_id
[patch by Waldir]

12 years agoStylize.
Santhosh Thottingal [Wed, 4 Jan 2012 09:06:05 +0000 (09:06 +0000)]
Stylize.

12 years agosvn property on .svg file (follow r107940)
Antoine Musso [Wed, 4 Jan 2012 08:59:57 +0000 (08:59 +0000)]
svn property on .svg file (follow r107940)

12 years agoAddress an edge case - input being null. Add test cases.
Santhosh Thottingal [Wed, 4 Jan 2012 08:56:36 +0000 (08:56 +0000)]
Address an edge case - input being null. Add test cases.

12 years agoFollow-up r107376: disable test by default, causes failures in some configurations
Max Semenik [Wed, 4 Jan 2012 08:38:13 +0000 (08:38 +0000)]
Follow-up r107376: disable test by default, causes failures in some configurations

12 years agoTypos, casing. Still don't understand "'qunit' is feed using tests/qunit/QUnitTestRes...
Niklas Laxström [Wed, 4 Jan 2012 08:29:58 +0000 (08:29 +0000)]
Typos, casing. Still don't understand "'qunit' is feed using tests/qunit/QUnitTestResources.php"
Ping r107919

12 years agoFix for r107945: also partially revert r107842
Alexandre Emsenhuber [Wed, 4 Jan 2012 08:24:11 +0000 (08:24 +0000)]
Fix for r107945: also partially revert r107842

12 years ago* Updated rebuildImages.php per r106752.
Aaron Schulz [Wed, 4 Jan 2012 08:07:52 +0000 (08:07 +0000)]
* Updated rebuildImages.php per r106752.
* Also added FIXME about old call to bogus renameFile() function in rebuildImages.php.
* Added ContainerShardIterator class from r107980 to autoloader.
* Added a few FileBackend comments and improved FileRepo::enumFiles() comments.

12 years agoconsistency and clarification fixes for messages merged in r107919
Niklas Laxström [Wed, 4 Jan 2012 07:46:16 +0000 (07:46 +0000)]
consistency and clarification fixes for messages merged in r107919

12 years ago* Add typehint to debug Call to a member function getTitle() on a non-object in ...
Niklas Laxström [Wed, 4 Jan 2012 06:52:59 +0000 (06:52 +0000)]
* Add typehint to debug Call to a member function getTitle() on a non-object in /www/w/includes/EditPage.php on line 121
* Remove @todo from constructor, because it's a constructor
* Some typos and code style

12 years ago* Added FileBackendBase::getFileContents() function with a default FileBackend version.
Aaron Schulz [Wed, 4 Jan 2012 02:15:07 +0000 (02:15 +0000)]
* Added FileBackendBase::getFileContents() function with a default FileBackend version.
* Added read-only mode to FileBackendBase config.
* Moved FileBackendBase::getFileTimestamp() up slightly.

12 years ago[mediawiki.debug] display: inline-block; work-around for in IE7
Krinkle [Wed, 4 Jan 2012 01:29:39 +0000 (01:29 +0000)]
[mediawiki.debug] display: inline-block; work-around for in IE7
* display: inline-block; is not supported by IE7
* Using standard work-around with triggering hasLayout (via zoom: 1;) on an inline element (only for IE7 through *hack)

12 years ago[jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar
Krinkle [Wed, 4 Jan 2012 01:28:01 +0000 (01:28 +0000)]
[jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar
* Previously mw.log and mw.Debug both were in a fixed container on the bottom, overlapping each other. mw.log did increase the body's padding-bottom to account for the height so that all content is still visible, but it was still a problem when mw.Debug came along.
* This plugin adds a single fixed position element to bottom of the body, to which other stuff like mw.log and mw.Debug can append a non-fixed position container. That will take care of it.
* Method update() will re-check the padding and scroll position and fix where needed
* Reduces code a little bit

12 years ago* Added supported for container sharding via existing FileRepo-style hash paths....
Aaron Schulz [Wed, 4 Jan 2012 01:08:33 +0000 (01:08 +0000)]
* Added supported for container sharding via existing FileRepo-style hash paths. For sharded containers, all paths used to store files must be hashed appropriately (or the path will be rejected as invalid).
* Tweaked FileBackend::isValidContainerName() length check to give some head room for shard and segment container names.
* Updated FSFileBackend to use new resolveStoragePathReal() function for file paths.
* Removed useless cache invalidation in FileBackend::concatenateInternal().

12 years agoFix unused parameter from r107350
Krinkle [Wed, 4 Jan 2012 00:05:08 +0000 (00:05 +0000)]
Fix unused parameter from r107350
* /me is going to run JSLint again instead of JSHint, that would've caught this.

12 years agoFollowup r107954, rm debugging code
John Du Hart [Tue, 3 Jan 2012 23:52:15 +0000 (23:52 +0000)]
Followup r107954, rm debugging code

12 years agore Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers
Mark A. Hershberger [Tue, 3 Jan 2012 23:42:15 +0000 (23:42 +0000)]
re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers
Authors: "Max" and Tim Landscheidt

Unquote 'null'

12 years agoFix regression in r107354: typo caused 'watch' link in Vector to never be hooked...
Brion Vibber [Tue, 3 Jan 2012 23:41:08 +0000 (23:41 +0000)]
Fix regression in r107354: typo caused 'watch' link in Vector to never be hooked up for ajax watch. :)

12 years agoFollowup r107862
John Du Hart [Tue, 3 Jan 2012 22:36:35 +0000 (22:36 +0000)]
Followup r107862

Fix bug that caused a PHP notice
Vertical-align:top on callers in the console

12 years agoRevert r107054: breaks execution of lines that might test or output '<?php' say when...
Brion Vibber [Tue, 3 Jan 2012 22:29:32 +0000 (22:29 +0000)]
Revert r107054: breaks execution of lines that might test or output '<?php' say when generating a PHP script
Is apparently meant to strip an initial line from PHP script files being piped in, but is insufficient to actually catch all cases.

12 years ago* Setting "javascripttest-backlink" message as ignored.
Rotem Liss [Tue, 3 Jan 2012 22:18:03 +0000 (22:18 +0000)]
* Setting "javascripttest-backlink" message as ignored.
* Adding special page alias to he.

12 years ago[JSTesting] Fix static html tests
Krinkle [Tue, 3 Jan 2012 22:16:24 +0000 (22:16 +0000)]
[JSTesting] Fix static html tests
* static tests need wgServer as well
* Follows-up r107946, r107919

12 years ago[JSTesting] Fix static html tests
Krinkle [Tue, 3 Jan 2012 21:53:23 +0000 (21:53 +0000)]
[JSTesting] Fix static html tests
* r107919 merge broke it as it removed all the inline mw.config calls, and the tearDown is resetting them to the initial values. That works fine on a MediaWiki page but on the static page are now no variables at all. Copying a basic sample to it. This should've been in the static test suite all along actually.
* Calculating wgScriptPath based on location.pathname instead of location.href, exclude wgServer
* Follows-up r107919

12 years agoRevert r107769, r107771, r107825, r107840, r107927, r107934
Brion Vibber [Tue, 3 Jan 2012 21:44:41 +0000 (21:44 +0000)]
Revert r107769, r107771, r107825, r107840, r107927, r107934

Title objects are meant to be dumb value objects; we shouldn't add to their internal state like this, but should be working to remove the bits already in there like the article ID.
Preloading information like this can make sense, but probably belongs in WikiPage, not Title.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 3 Jan 2012 21:22:22 +0000 (21:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert r107773 - increases parsercache fragmentation without clear benefit
Brion Vibber [Tue, 3 Jan 2012 21:20:35 +0000 (21:20 +0000)]
Revert r107773 - increases parsercache fragmentation without clear benefit

12 years agoPHPUnit test case for bug 31719 (followup r107793)
Brion Vibber [Tue, 3 Jan 2012 21:12:24 +0000 (21:12 +0000)]
PHPUnit test case for bug 31719 (followup r107793)

12 years agoAllow new checkbox on Special::Export to export all pages. See bug 10574.
Greg Sabino Mullane [Tue, 3 Jan 2012 21:08:32 +0000 (21:08 +0000)]
Allow new checkbox on Special::Export to export all pages. See bug 10574.

12 years agor107919: Register new message keys for maintenance scripts, as usual...
Raimond Spekking [Tue, 3 Jan 2012 20:33:35 +0000 (20:33 +0000)]
r107919: Register new message keys for maintenance scripts, as usual...

12 years agoPer Aaron, fix for r107771: Title::getTouched() should return false on non-existing...
Alexandre Emsenhuber [Tue, 3 Jan 2012 20:15:45 +0000 (20:15 +0000)]
Per Aaron, fix for r107771: Title::getTouched() should return false on non-existing page

12 years agoFix Bug 33384 - database drivers cannot be provided by extension
Mark A. Hershberger [Tue, 3 Jan 2012 19:55:45 +0000 (19:55 +0000)]
Fix Bug 33384 - database drivers cannot be provided by extension
Author: Adam Wight

Love the simplicity of this fix.

12 years agoFollowup r107882: explicitly say text() or parse() on wfMessage() calls!
Brion Vibber [Tue, 3 Jan 2012 19:44:58 +0000 (19:44 +0000)]
Followup r107882: explicitly say text() or parse() on wfMessage() calls!

12 years ago* Removed excess prepare() calls in initZones() - the batch functions already call...
Aaron Schulz [Tue, 3 Jan 2012 19:28:04 +0000 (19:28 +0000)]
* Removed excess prepare() calls in initZones() - the batch functions already call prepare on the target dirs.
* Tweaked call to secure() to align with what it actually does (it already makes the container private if possible).
* A few documentation tweaks.

12 years agoGive Title a decent loading mechanism:
Alexandre Emsenhuber [Tue, 3 Jan 2012 19:28:03 +0000 (19:28 +0000)]
Give Title a decent loading mechanism:
* Added Title::load() to factorise common code that load member variables instead of having each accessor doing it own loading system for its related member variable
* Removed usage of LinkCache::addLinkObj() to do the database query and do this directly in Title::load(). This allows to select the complete database row and populate all member variables; previously, requesting a field not stored in LinkCache (using getCount(), getTouched() or isNewPage()) results in two database query, one to load LinkCache data and the second to load the requested field; now there'll be only one query.
* Added Title::FIELD_IN_LINKCACHE and Title::FIELD_NOT_IN_LINKCACHE to specify whether the requested field is stored in LinkCache or not. LinkCache will be used if possible (i.e. Title::FIELD_IN_LINKCACHE is passed), otherwise a DB query to select the complete row is issued.
* Made Title::loadFromRow() save the row to LinkCache if possible.
* Added $wasFromMaster parameter to Title::loadFromRow() to tell that method whether the row was loaded from the master database or not and pass it from WikiPage::loadPageData()
* Added Title::GAID_USE_MASTER in addition to Title::GAID_FOR_UPDATE to get the row from the master database without having to do a SELECT FROM UPDATE query
* Added Title::selectFields() method to return the fields to select to given Title::loadFromRow() (and methods using it such as Title::newFromRow()) a complete row
* Made Title::$mCounter private since it has only been added recently (in r105790)
* Mark the object as loaded if Title::resetArticleID() is called with as new ID as 0

12 years agomerge JSTesting branch into trunk
Antoine Musso [Tue, 3 Jan 2012 18:33:26 +0000 (18:33 +0000)]
merge JSTesting branch into trunk

Changed written by Timo and reviewed by Hashar. This should be harmless.

To enable the feature:
  $wgEnableJavaScriptTest = true;

Then head to:
  [[Special:JavaScriptTest/qunit]]

12 years agoRemoved useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do...
Alexandre Emsenhuber [Tue, 3 Jan 2012 16:20:56 +0000 (16:20 +0000)]
Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself