lhc/web/wiklou.git
12 years agoFix jquery.client.test breakage
Krinkle [Sat, 28 Jan 2012 16:56:10 +0000 (16:56 +0000)]
Fix jquery.client.test breakage
* Remove both classes before adding one. Previously test ran normally on an "ltr" page because the loop starts with "ltr" and they matches naturally. It broke on pages that started out with "rtl". Fixed now
* Restored body classes after the test, otherwise both "rtl" and "ltr" would be gone, could influence other tests and layout stuff on the page.

* Follows-up r101845

12 years ago[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector
Krinkle [Sat, 28 Jan 2012 16:26:12 +0000 (16:26 +0000)]
[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector

* Two reasons:
-- Limit bug: Limit can't be enforced if the two are together
because only page_title is limited, the namespace prefix
is not part of the title. Plus even then, there is still
ambiguity with the various ways to denote namespaces (aliases)
and whitespace freedom between namespace, colon and title.
-- Extra feature: Now that the two are separate it' s easier
for users to move across namespaces as one doesn't have to type,
can't make spelling mistakes. Also, in the future we could exclude
certain target namespaces that are not possible or not allowed (now one can
perfectly submit a request to move from NS_CATEGORY or NS_FILE, only to
get a warning on submission). By showing them disabled in the drop down
this becomes clearer).

* Keeps backwards compatibility for gadgets and permalinks generated
by templates on wikis so that they can still pre-set the "new title"
from a url the old way. The new way can also be pre-set from the url,
and allows them to be set separately (wpNewTitleNs=10&wpNewTitleMain=Infobox)
* Gadgets and templates linking to Special:MovePage with a preset target
-- Old way (still works): wpNewTitle=Template:Infobox
-- New way: wpNewTitleNs=10 (and/or) wpNewTitleMain=Infobox

* Fixes bug 29454; Depends on r109990;
-- (bug 29454) Enforce byteLimit for page title input on Special:MovePage

12 years ago* In NewParserTest, made it possible to use the --use-filebackend param to run the...
Aaron Schulz [Sat, 28 Jan 2012 01:20:42 +0000 (01:20 +0000)]
* In NewParserTest, made it possible to use the --use-filebackend param to run the tests on a given registered backend.
* In FileBackendTest, killed useless recursiveClean() call.

12 years agor110180: fixed copy-paste cruft for custom backend code. Also made backend names...
Aaron Schulz [Sat, 28 Jan 2012 00:43:55 +0000 (00:43 +0000)]
r110180: fixed copy-paste cruft for custom backend code. Also made backend names consistent.

12 years agoReverted r109957 per slush (see CR comments)
Aaron Schulz [Sat, 28 Jan 2012 00:16:20 +0000 (00:16 +0000)]
Reverted r109957 per slush (see CR comments)

12 years agoUse accessor method, ping r110179
Sam Reed [Fri, 27 Jan 2012 23:19:58 +0000 (23:19 +0000)]
Use accessor method, ping r110179

12 years agoKilled the metric arseload of test folders that were being leaked and killing jenkins
Aaron Schulz [Fri, 27 Jan 2012 22:57:14 +0000 (22:57 +0000)]
Killed the metric arseload of test folders that were being leaked and killing jenkins

12 years agoFixed a bunch of dir leakage
Aaron Schulz [Fri, 27 Jan 2012 22:46:55 +0000 (22:46 +0000)]
Fixed a bunch of dir leakage

12 years agoFollow-up r83791: do not show size links for wikis which do not use a 404 transform...
Bryan Tong Minh [Fri, 27 Jan 2012 22:44:46 +0000 (22:44 +0000)]
Follow-up r83791: do not show size links for wikis which do not use a 404 transform, since this is a rather expensive operation, which can delay loading for several seconds.

12 years agoadded kml mime type
Jeroen De Dauw [Fri, 27 Jan 2012 22:11:57 +0000 (22:11 +0000)]
added kml mime type

12 years agoComments only
mrbluesky [Fri, 27 Jan 2012 22:07:09 +0000 (22:07 +0000)]
Comments only

12 years agoUse WikiPage instead of Article to call doDeleteArticle()
Alexandre Emsenhuber [Fri, 27 Jan 2012 21:21:19 +0000 (21:21 +0000)]
Use WikiPage instead of Article to call doDeleteArticle()

12 years agoYay, https
Sam Reed [Fri, 27 Jan 2012 21:16:47 +0000 (21:16 +0000)]
Yay, https

12 years ago* Group related functions
Alexandre Emsenhuber [Fri, 27 Jan 2012 21:13:25 +0000 (21:13 +0000)]
* Group related functions
* Moved isCountable() and redirect-related function a bit downward

12 years agoThe if should check $commentText, not $f, which is always set in this branch.
Platonides [Fri, 27 Jan 2012 21:06:00 +0000 (21:06 +0000)]
The if should check $commentText, not $f, which is always set in this branch.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 27 Jan 2012 20:44:55 +0000 (20:44 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollow-up r110159: set the FilesystemIterator flags when that class is available...
Aaron Schulz [Fri, 27 Jan 2012 20:35:42 +0000 (20:35 +0000)]
Follow-up r110159: set the FilesystemIterator flags when that class is available (PHP >= 5.3). Apparently, some versions of PHP 5.3 have different defaults that others for SKIP_DOTS.

12 years ago* Reverted r108194 to support PHP < 5.3. These should already be the default iterator...
Aaron Schulz [Fri, 27 Jan 2012 20:12:50 +0000 (20:12 +0000)]
* Reverted r108194 to support PHP < 5.3. These should already be the default iterator settings.
* Also made the iterator keys (e.g. in foreach) more consistent by being integers as the other backend iterators do.

12 years agor107980: added missing dir param to FileBackendShardListIterator
Aaron Schulz [Fri, 27 Jan 2012 18:23:40 +0000 (18:23 +0000)]
r107980: added missing dir param to FileBackendShardListIterator

12 years agor107980: added missing dir param to FileBackendShardListIterator
Aaron Schulz [Fri, 27 Jan 2012 18:21:58 +0000 (18:21 +0000)]
r107980: added missing dir param to FileBackendShardListIterator

12 years agoFix spurious character from r110122
Sam Reed [Fri, 27 Jan 2012 15:03:50 +0000 (15:03 +0000)]
Fix spurious character from r110122

12 years agoSelf-revert r110124, needs more than that to support 5.2 since $flags don't exist...
Chad Horohoe [Fri, 27 Jan 2012 14:33:43 +0000 (14:33 +0000)]
Self-revert r110124, needs more than that to support 5.2 since $flags don't exist in 5.2.

Either this needs to be fixed to really support 5.2 or we'll bumping the minimum version to 5.3 this release.

12 years agoAdd documentation
Sam Reed [Fri, 27 Jan 2012 14:30:40 +0000 (14:30 +0000)]
Add documentation

Fix whitespace

12 years agoCopy FilesystemIterator constants so we can still pretend to support 5.2
Chad Horohoe [Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)]
Copy FilesystemIterator constants so we can still pretend to support 5.2

12 years ago$this->substPaths takes 2 parameters
Sam Reed [Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)]
$this->substPaths takes 2 parameters

protected function substPaths( $paths, FileBackend $backend ) {

Pass $backend from the for loop

12 years agoFix undefined $dirRoot
Sam Reed [Fri, 27 Jan 2012 14:15:29 +0000 (14:15 +0000)]
Fix undefined $dirRoot

12 years agoMinor tweak to r109161, remove trailing "this"
Chad Horohoe [Fri, 27 Jan 2012 13:27:26 +0000 (13:27 +0000)]
Minor tweak to r109161, remove trailing "this"

12 years agoFixup r109698, add setter for $namespaceNames and use proper accessors in the tests.
Chad Horohoe [Fri, 27 Jan 2012 13:00:26 +0000 (13:00 +0000)]
Fixup r109698, add setter for $namespaceNames and use proper accessors in the tests.

Since we're here: nothing uses $namespaceNames, $mNamespaceIds or $namespaceAliases
outside of this class (core or extensions) so lets make it protected.

12 years agoAdd PHPUnit tests for plural rules. For languages cs, cu, cy, dsb, fr, ga, gd, gv...
Santhosh Thottingal [Fri, 27 Jan 2012 11:13:06 +0000 (11:13 +0000)]
Add PHPUnit tests for plural rules. For languages cs, cu, cy, dsb, fr, ga, gd, gv, hr, hsb, hy, ksh, ln

12 years agoCompressed a few images
Max Semenik [Fri, 27 Jan 2012 10:00:42 +0000 (10:00 +0000)]
Compressed a few images

12 years agoUse Language::userTimeAndDate() and related to get the time with user preferences...
Alexandre Emsenhuber [Fri, 27 Jan 2012 07:23:55 +0000 (07:23 +0000)]
Use Language::userTimeAndDate() and related to get the time with user preferences instead of Language::timeanddate() and related

12 years ago* (bug 33762) QueryPage-based special pages no longer misses *-summary message
Alexandre Emsenhuber [Fri, 27 Jan 2012 07:15:18 +0000 (07:15 +0000)]
* (bug 33762) QueryPage-based special pages no longer misses *-summary message

12 years agophpunit testcases on the plural rules for am, ar, be, be_tarask, bh, bs and hi languages
Santhosh Thottingal [Fri, 27 Jan 2012 06:01:43 +0000 (06:01 +0000)]
phpunit testcases on the plural rules for am, ar, be, be_tarask, bh, bs and hi languages

12 years agoUse dataprovider for testcases.
Santhosh Thottingal [Fri, 27 Jan 2012 05:58:46 +0000 (05:58 +0000)]
Use dataprovider for testcases.

12 years ago(bug 33911) SiteStats::isSane() should not check admins anymore
Chad Horohoe [Thu, 26 Jan 2012 22:08:38 +0000 (22:08 +0000)]
(bug 33911) SiteStats::isSane() should not check admins anymore

12 years agoRemove last two vestiges of ss_admins. It still exists in some schema files, but...
Chad Horohoe [Thu, 26 Jan 2012 22:04:55 +0000 (22:04 +0000)]
Remove last two vestiges of ss_admins. It still exists in some schema files, but those are harmless

12 years agoIn FileBackendBase/FileBackend:
Aaron Schulz [Thu, 26 Jan 2012 21:05:03 +0000 (21:05 +0000)]
In FileBackendBase/FileBackend:
* Added normalizeStoragePath() function. Use it for normalizing paths in the stat cache. This way, if someone clears a non-normal form of path from the cache, it will actually work as expected.
* Removed 'abstract' flag from FileBackendBase::clearCache().
* Documentation tweaks.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 26 Jan 2012 20:39:48 +0000 (20:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFurther reduced RTTs in SwiftFileBackend by making "file already exists" checks use...
Aaron Schulz [Thu, 26 Jan 2012 20:17:18 +0000 (20:17 +0000)]
Further reduced RTTs in SwiftFileBackend by making "file already exists" checks use the stat cache, typically already set in FileOp::doPrecheck(). FileBackendBase::doOperationsInternal() already clears the cache after locking (and before FileOp::attemptBatch) for consistency.

12 years agoUnused global
Platonides [Thu, 26 Jan 2012 17:16:41 +0000 (17:16 +0000)]
Unused global

12 years ago* Do the page existence check before calling ignore_user_abort() so that we don't...
Alexandre Emsenhuber [Thu, 26 Jan 2012 16:44:29 +0000 (16:44 +0000)]
* Do the page existence check before calling ignore_user_abort() so that we don't return after having modified that value
* Change the check to use $oldid since we already have the result of getLatest()

12 years agoupdate Message class doc
Antoine Musso [Thu, 26 Jan 2012 14:55:38 +0000 (14:55 +0000)]
update Message class doc

Ping r110054

12 years agoFix r110054, \ -> @
Chad Horohoe [Thu, 26 Jan 2012 13:45:50 +0000 (13:45 +0000)]
Fix r110054, \ -> @

12 years agoenhance doxygen generation for Message class
Antoine Musso [Thu, 26 Jan 2012 11:34:30 +0000 (11:34 +0000)]
enhance doxygen generation for Message class

12 years agosanitize outgoing messages
Neil Kandalgaonkar [Thu, 26 Jan 2012 02:15:04 +0000 (02:15 +0000)]
sanitize outgoing messages

12 years ago* In NewParserTest, refactored code to use FileBackend (bug 31737). Also made some...
Aaron Schulz [Wed, 25 Jan 2012 23:11:53 +0000 (23:11 +0000)]
* In NewParserTest, refactored code to use FileBackend (bug 31737). Also made some speed improvements and made regex= not flood the output with 600 items of crap.
* In FileBackendTest, call clean() on the dirs *after* deleting all the files first.
* Speed improvements to MediaWikiTestCase.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 25 Jan 2012 20:38:04 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert from 107187 to 107186 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:26:46 +0000 (18:26 +0000)]
Revert from 107187 to 107186 for bug24430 patch, it causes layout issue

12 years agoRevert from 107188 to 107187 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:22:02 +0000 (18:22 +0000)]
Revert from 107188 to 107187 for bug24430 patch, it causes layout issue

12 years agoRevert from 108870 to 108869 since bug24430 patch got reverted
Benny Situ [Wed, 25 Jan 2012 18:17:45 +0000 (18:17 +0000)]
Revert from 108870 to 108869 since bug24430 patch got reverted

12 years agoRevert from 109557 to 109556 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:05:54 +0000 (18:05 +0000)]
Revert from 109557 to 109556 for bug24430 patch, it causes layout issue

12 years agobug 33646 Badtitle error page now emits a 400 HTTP status.
Antoine Musso [Wed, 25 Jan 2012 10:51:37 +0000 (10:51 +0000)]
bug 33646 Badtitle error page now emits a 400 HTTP status.

Sending a 200 OK status on bad title, prevents mobile browsers to
actually now the page is an error page.

Tested using:
 curl -I http://localhost/wiki/\]\]
 curl -I http://localhost/wiki/Special:BadTitle

12 years agoFix broken unit test
Krinkle [Wed, 25 Jan 2012 03:45:01 +0000 (03:45 +0000)]
Fix broken unit test
* r109993 broke the test by overwriting namespaces it tried to preserve
* tearDown should always have the opposite order of the overrides in setUp
* Adding wgLanguageCode while at it, no reason not to, just in case.

-- Follows-up r109993

12 years ago[Html] Unit test + bugfix Html::namespaceSelector
Krinkle [Wed, 25 Jan 2012 03:25:54 +0000 (03:25 +0000)]
[Html] Unit test + bugfix Html::namespaceSelector
* Previously it was passing $selectAttribs['name'] to Xml::label, which uses its value for the <label for=""> attribute. This works as long as $selectAttribs['id'] and $selectAttribs['name'] match, but when they don't it fails. <label for=""> always corresponds with <{input,text area,select} id=""> in browsers, never with "name".
* Make name/id match eachother by default to avoid backwards compatibility breakages (they used to match in the Xml class method as well)
* Add HtmlTest.php entries similar to the ones in XmlTest
* Fix E_NOTICE about $params['selected'], default to ''

-- Follows-up r109974, r109698, r109990
-- Bug originally introduced in r41425
-- XmlTest.php still runs successfully
-- HtmlTest.php runs successfully

12 years ago[Xml/Html] new method Html::namespaceSelector
Krinkle [Wed, 25 Jan 2012 03:01:20 +0000 (03:01 +0000)]
[Xml/Html] new method Html::namespaceSelector
* Using params and option arrays instead of 4 random parameters like Xml::namespaceSelector did
* Right now it's passing $selectAttribs['name'] to Xml::label, this is done because that's what Xml::namespaceSelector did. However it's wrong since labels associate over ID not NAME. Will fix in the next commit, making sure unit tests stay functional first. This bug has been in Xml::namespaceSelector for a long time but usually unnoticed as people kept either defaults. Although it was easy to get wrong as the NAME was configurable but the ID was hardcoded in Xml::namespaceSelector.
* Deprecated Xml::namespaceSelector and made it cal Html::namespaceSelector

* Follows-up r109974, r109698
* XmlTest.php still runs successfully

12 years agogit should ignore image directories and cache files
Neil Kandalgaonkar [Wed, 25 Jan 2012 02:15:42 +0000 (02:15 +0000)]
git should ignore image directories and cache files

12 years agoIn FileBackend:
Aaron Schulz [Wed, 25 Jan 2012 01:57:28 +0000 (01:57 +0000)]
In FileBackend:
* Use 'b' param in some fopen() calls as needed for Windows and newline handling.
* Removed some useless padding code in FileBackend::getContainerShard(). Initialized $m to make IDE happy.
* Updated some code comments.
In SwiftFileBackend:
* Manually set the ETag when using php-cloudfiles for creating files to avoid https://github.com/rackspace/php-cloudfiles/issues/59.
* Manually set the content type based on how StreamFile::getType(). This makes it safe to read files directly out of the proxy to end-users. The streamFile() backend functions already uses a similar content-type check.

12 years ago[Unit testing] Re-order attribs to a-z to make testing more reliable
Krinkle [Wed, 25 Jan 2012 00:52:29 +0000 (00:52 +0000)]
[Unit testing] Re-order attribs to a-z to make testing more reliable
* This is in preparation for deprecating this in favor of an Html:: method soon, making sure here that tests still match afterwards
* Follows-up r109698

12 years agoImprove documentation for content type choice
Tim Starling [Tue, 24 Jan 2012 22:22:19 +0000 (22:22 +0000)]
Improve documentation for content type choice

12 years agoAdd HTMLFormFields for namespaces and restriction levels. This is not a 1.19 feature...
John Du Hart [Tue, 24 Jan 2012 21:34:26 +0000 (21:34 +0000)]
Add HTMLFormFields for namespaces and restriction levels. This is not a 1.19 feature and should be reverted post-branch.

12 years agoUpdating PHPDoc on $wgFilterCallback so PHPStorm stops complaining
John Du Hart [Tue, 24 Jan 2012 20:52:46 +0000 (20:52 +0000)]
Updating PHPDoc on $wgFilterCallback so PHPStorm stops complaining

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

12 years agor109904: worked around PHP < 5.3 suckage to keep this compatible
Aaron Schulz [Tue, 24 Jan 2012 18:49:53 +0000 (18:49 +0000)]
r109904: worked around PHP < 5.3 suckage to keep this compatible

12 years agodiff: align cell content to the top
Antoine Musso [Tue, 24 Jan 2012 16:25:41 +0000 (16:25 +0000)]
diff: align cell content to the top

This is needed when both sides are unbalanced. For example when a very
long paragraph is replaced by a single sentence, the text in the right
cell will be floating in the middle.

Example using ?action=render-ascii:

PRE PATCH:
+----------------+  +----------------+
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  | lot of e       |
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  |                |
+----------------+  +----------------+

POST PATCH:
+----------------+  +----------------+
|eeeeeeeeeeeeeeee|  | lot of e       |
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  |                |
|eeeeeeeeeeeeeeee|  |                |
+----------------+  +----------------+

Part of: bug 33335 - new color scheme and text display for diffs
follow r107127

12 years ago* Oracle schema update to latest (tested with phpunit)
Jure Kajzer [Tue, 24 Jan 2012 09:48:26 +0000 (09:48 +0000)]
* Oracle schema update to latest (tested with phpunit)
* Fixed a message typo in DatabaseUpdater

12 years agoMade FileOp classes enforce required params. Also reverts r109823.
Aaron Schulz [Tue, 24 Jan 2012 05:54:47 +0000 (05:54 +0000)]
Made FileOp classes enforce required params. Also reverts r109823.

12 years agodo not try to html-escape anything but strings; fixes failing unit tests
Neil Kandalgaonkar [Tue, 24 Jan 2012 04:23:02 +0000 (04:23 +0000)]
do not try to html-escape anything but strings; fixes failing unit tests

12 years ago* Moved FSFile classes from file/ to backend/
Aaron Schulz [Tue, 24 Jan 2012 02:46:21 +0000 (02:46 +0000)]
* Moved FSFile classes from file/ to backend/
* Improved $this->lockCount check in LockServerDaemon

12 years agoremove trailing comma
Neil Kandalgaonkar [Tue, 24 Jan 2012 02:30:24 +0000 (02:30 +0000)]
remove trailing comma

12 years agoadd neilk, ibaker to credits
Neil Kandalgaonkar [Tue, 24 Jan 2012 01:48:47 +0000 (01:48 +0000)]
add neilk, ibaker to credits

12 years agoescape incoming strings (cannot contain HTML any more)
Neil Kandalgaonkar [Tue, 24 Jan 2012 01:44:19 +0000 (01:44 +0000)]
escape incoming strings (cannot contain HTML any more)

12 years agoAdded the following three items:
Diederik van Liere [Tue, 24 Jan 2012 01:14:39 +0000 (01:14 +0000)]
Added the following three items:
* (bug 27775) Namespace has it's own XML tag in the XML dump file.
* (bug 30513) Redirect tag is now resolved in XML dump file.
* sha1 xml tag added to XML dump file.

12 years agospacing fix
Jeroen De Dauw [Tue, 24 Jan 2012 00:25:00 +0000 (00:25 +0000)]
spacing fix

12 years agoreverts r109814 r109815
Antoine Musso [Mon, 23 Jan 2012 21:56:00 +0000 (21:56 +0000)]
reverts r109814 r109815

* Ternary operator avoided a call to wfWikiID()
* We really want to explicitly choose the manager
  use LockManagerGroup->get( 'nullLockManager' )
* defaultConfig no more needed if it handles just one parameter that
  we want to set explicitly

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 23 Jan 2012 20:08:42 +0000 (20:08 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoAdd the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd...
Diederik van Liere [Mon, 23 Jan 2012 19:48:20 +0000 (19:48 +0000)]
Add the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd and fix namespace element from string to integer.

12 years agoFix for r109720: replace the last two regexes with plain string functions. The regula...
Tim Starling [Mon, 23 Jan 2012 19:35:05 +0000 (19:35 +0000)]
Fix for r109720: replace the last two regexes with plain string functions. The regular expression used for stripping the last path component from the output was inefficient, because PCRE does not optimise "$" anchors correctly. It scans the entire string forwards, instead of scanning backwards starting from the anchor. Passes tests.

12 years agoMake arguments to phpunit.php work. It's hard to believe this could have been broken...
Tim Starling [Mon, 23 Jan 2012 19:06:09 +0000 (19:06 +0000)]
Make arguments to phpunit.php work. It's hard to believe this could have been broken since r79164, so maybe it was a change in the command line parser that PHPUnit uses that made it treat any options after the first non-option argument as being plain arguments rather than actual options.

12 years agoCorrect mw.Uri.decode to properly decode encoded + signs. Fixes bug 33902
Derk-Jan Hartman [Mon, 23 Jan 2012 18:11:28 +0000 (18:11 +0000)]
Correct mw.Uri.decode to properly decode encoded + signs. Fixes bug 33902
Patch by Fomafix

12 years agoRedoing r108960 with history
Sam Reed [Mon, 23 Jan 2012 17:02:51 +0000 (17:02 +0000)]
Redoing r108960 with history

If it was a 3rd party library, there probably wouldn't have been any use doing this

12 years agoRevert r108987 to copy properly
Sam Reed [Mon, 23 Jan 2012 16:59:32 +0000 (16:59 +0000)]
Revert r108987 to copy properly

12 years agoCleanup to statistics:
Alexandre Emsenhuber [Mon, 23 Jan 2012 16:27:13 +0000 (16:27 +0000)]
Cleanup to statistics:
* Removed 'pcache_miss_invalid' from stats.php and clear_stats.php, no longer used
* Added missing 'job-insert' and 'job-pop' to clear_stats.php
* Added missing call to wfIncrStats( 'pcache_miss_absent' ) when there's no key in ParserCacge::get()
* Removed useless 'pcache_not_possible' stat from OutputPage::addWikiTextTitle() since that function is mostly used for interface messages

12 years agoAdding the jquery cycle plugin. This is being used by the UnitTest extension. See...
Jeremy Postlethwaite [Mon, 23 Jan 2012 16:13:20 +0000 (16:13 +0000)]
Adding the jquery cycle plugin. This is being used by the UnitTest extension. See r109762.

12 years agoupdate wgUsersNotifiedOnAllChanges doc (r109826)
Antoine Musso [Mon, 23 Jan 2012 16:08:38 +0000 (16:08 +0000)]
update wgUsersNotifiedOnAllChanges doc (r109826)

12 years agoBug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made...
Sam Reed [Mon, 23 Jan 2012 15:04:22 +0000 (15:04 +0000)]
Bug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made the edit.

12 years agoFileRepo: check constructor parameters
Antoine Musso [Mon, 23 Jan 2012 14:50:54 +0000 (14:50 +0000)]
FileRepo: check constructor parameters

new FileRepo() requires an array of parameters having at least the
'name' and 'backend' key setup.

TODO: 'backend' keyword should probably default to FileBackend.

12 years agoFileOp: allow creation of an empty file
Antoine Musso [Mon, 23 Jan 2012 14:48:49 +0000 (14:48 +0000)]
FileOp: allow creation of an empty file

When creating a file but ommitting the 'content' key, it would throw
a notice. Using getParams let us forget about the 'content' key and
hence create files with no content.

12 years agocleanly handle wikiId on FileBackendBase construction
Antoine Musso [Mon, 23 Jan 2012 11:03:45 +0000 (11:03 +0000)]
cleanly handle wikiId on FileBackendBase construction

Use the default array added by r109814

12 years agoget a null lock manager by default
Antoine Musso [Mon, 23 Jan 2012 10:59:02 +0000 (10:59 +0000)]
get a null lock manager by default

12 years ago* Added some wfProfileIn() calls to file backend code.
Aaron Schulz [Mon, 23 Jan 2012 08:33:31 +0000 (08:33 +0000)]
* Added some wfProfileIn() calls to file backend code.
* Made FileBackend::getFileProps() final.
* Added exception needed in SwiftFileBackend::getConnection().
* Various FileBackendTests fixes and additions. Optimized it a bit by keeping the backend instance in memory.

12 years agoIn LockServerDaemon:
Aaron Schulz [Mon, 23 Jan 2012 02:55:15 +0000 (02:55 +0000)]
In LockServerDaemon:
* Factored out LockHolder class from main class
* Tweaked a few socket options (using a non-blocking accept() and keep alives for new clients)

12 years agoreverting r109723 because of slush.
Daniel Kinzler [Sun, 22 Jan 2012 20:46:39 +0000 (20:46 +0000)]
reverting r109723 because of slush.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 22 Jan 2012 20:27:25 +0000 (20:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert feature out of r109562, r109564, r109570
Sam Reed [Sun, 22 Jan 2012 17:33:44 +0000 (17:33 +0000)]
Revert feature out of r109562, r109564, r109570

Leaving typo/brace fixes and other minor code improvements

12 years agoRm extra space
Niklas Laxström [Sun, 22 Jan 2012 12:16:47 +0000 (12:16 +0000)]
Rm extra space

12 years agoIntroducing optional support for <a> tags, to be used with microdata resp. RDFa,...
Daniel Kinzler [Sun, 22 Jan 2012 05:58:23 +0000 (05:58 +0000)]
Introducing optional support for <a> tags, to be used with microdata resp. RDFa, as originally suggested in r58694.
This is reintroduced after a discussion with TimStarling considering the discussion about r58717.
Note that a change to the parser will be needed to cause links from <a> tags to be recorded in the externallink table.

12 years agoFollow-up 102587 to address performance concerns in wfRemoveDotSegments.
gicode [Sun, 22 Jan 2012 04:57:37 +0000 (04:57 +0000)]
Follow-up 102587 to address performance concerns in wfRemoveDotSegments.

12 years agoSimplified last_modified timestamp conversion in SwiftFileBackend to just use wfTimes...
Aaron Schulz [Sun, 22 Jan 2012 03:25:19 +0000 (03:25 +0000)]
Simplified last_modified timestamp conversion in SwiftFileBackend to just use wfTimestamp()

12 years ago[Core JS] mediawiki.legacy.protect should be loaded from the top
Krinkle [Sun, 22 Jan 2012 02:51:06 +0000 (02:51 +0000)]
[Core JS] mediawiki.legacy.protect should be loaded from the top
* The global object created by this legacy module is references from inline on-event attributes as well as from inline <script>'s by ProtectionForm.php
* Needs to be loaded before any of that happens
* Fixes bug 33660

12 years ago[mediawiki.util] minor code cleanup
Krinkle [Sun, 22 Jan 2012 02:37:45 +0000 (02:37 +0000)]
[mediawiki.util] minor code cleanup
* Remove distance between variable assignment and usage in mw.util.ini
* Change awkwardly indention from extended var statement into separate flush-left assignments and a simple var statement.
* whitespace etc. (ignore whitespace with -x-uw or on ViewVC diff)