lhc/web/wiklou.git
10 years agoMerge "Use getFileContents() instead of incorrect file system call to fetch file...
jenkins-bot [Wed, 19 Jun 2013 20:31:21 +0000 (20:31 +0000)]
Merge "Use getFileContents() instead of incorrect file system call to fetch file contents."

10 years agoRemove unused class, SearchUpdate is backend-agnostic
Chad Horohoe [Wed, 19 Jun 2013 18:34:35 +0000 (14:34 -0400)]
Remove unused class, SearchUpdate is backend-agnostic

Change-Id: I8c91c28ff2bde361490691b4abc107329f0d8194

10 years agoMerge "filebackend: throw exceptions during file iteration."
jenkins-bot [Wed, 19 Jun 2013 19:57:32 +0000 (19:57 +0000)]
Merge "filebackend: throw exceptions during file iteration."

10 years agoMerge "UserCache::getUserName: Docs said @since 1.21, but not in REL1_21"
jenkins-bot [Wed, 19 Jun 2013 19:22:43 +0000 (19:22 +0000)]
Merge "UserCache::getUserName: Docs said @since 1.21, but not in REL1_21"

10 years agoUserCache::getUserName: Docs said @since 1.21, but not in REL1_21
Brian Wolff [Wed, 19 Jun 2013 19:17:52 +0000 (16:17 -0300)]
UserCache::getUserName: Docs said @since 1.21, but not in REL1_21

Change-Id: I4ad85ee36ed348e8b082b5a4dba11d7cb92d8ad0
Follow-up: ef915e37e3d872

10 years agoMerge "vector: Add SVG versions of collapsible menu icons"
jenkins-bot [Wed, 19 Jun 2013 19:14:05 +0000 (19:14 +0000)]
Merge "vector: Add SVG versions of collapsible menu icons"

10 years agovector: Add SVG versions of collapsible menu icons
Pau Giner [Sat, 25 May 2013 08:35:49 +0000 (10:35 +0200)]
vector: Add SVG versions of collapsible menu icons

SVG with a PNG fallback is added for the collapsible tab icon.
It allows SVG-capable browsers to view images at full resolution
while keeping backwards compatibility with browsers that don't support
SVG.

Implementation similar to I914da06494.

Change-Id: I0448e34bd10aa5cf83f1530a44b1555caee271b1

10 years agoMerge "Switched FileBackendStore to use ProfileSection when possible."
jenkins-bot [Wed, 19 Jun 2013 18:26:58 +0000 (18:26 +0000)]
Merge "Switched FileBackendStore to use ProfileSection when possible."

10 years agoMerge "Avoid exceptions by first checking language code validity"
jenkins-bot [Wed, 19 Jun 2013 17:30:03 +0000 (17:30 +0000)]
Merge "Avoid exceptions by first checking language code validity"

10 years agoImprove documentation of action=parse (followup Ie4f7324c)
Brad Jorsch [Wed, 19 Jun 2013 14:53:57 +0000 (10:53 -0400)]
Improve documentation of action=parse (followup Ie4f7324c)

The documentation for action=parse needs clarification, particularly in
light of the changes made in Ie4f7324c which were too hastily merged.

Also, add the RELEASE-NOTES entry missing from Ie4f7324c.

Change-Id: Ia8847f7e99620a9f7af24956d972c882f78aae26

10 years agoRestore API action=parse&text=foo functionality on wikidata.org
Niklas Laxström [Wed, 19 Jun 2013 10:21:19 +0000 (10:21 +0000)]
Restore API action=parse&text=foo functionality on wikidata.org

Bug: 48201
Change-Id: Ie4f7324c2a10700e52dadc4facd6b4fe6c76cf48

10 years agoMerge "Only new vertical format login and signup forms"
jenkins-bot [Wed, 19 Jun 2013 09:13:31 +0000 (09:13 +0000)]
Merge "Only new vertical format login and signup forms"

10 years agoVector: Add the collapsibleTabs script from the Vector extension
lfs [Sun, 24 Mar 2013 23:10:35 +0000 (20:10 -0300)]
Vector: Add the collapsibleTabs script from the Vector extension

* Move jquery.collapsibleTabs from the Vector extension
  to the Vector skin (see 097f387362)
* Register the module and its dependencies
* Merge the init script into the existing vector.js

Bug: 46513
Change-Id: I7bd77e6e4c384c9e2033f9d05ffcae86b0bb7a69

10 years agoSwitched FileBackendStore to use ProfileSection when possible.
Aaron Schulz [Wed, 1 May 2013 03:55:52 +0000 (20:55 -0700)]
Switched FileBackendStore to use ProfileSection when possible.

* Also removed outer profiling layer.

Change-Id: Ice3b921fe0c9981ac16f005d66a78bf4f4a5c601

10 years agoMerge "Support updating search index when page is deleted"
jenkins-bot [Tue, 18 Jun 2013 21:47:12 +0000 (21:47 +0000)]
Merge "Support updating search index when page is deleted"

10 years agoSupport updating search index when page is deleted
Chad Horohoe [Tue, 18 Jun 2013 20:06:49 +0000 (16:06 -0400)]
Support updating search index when page is deleted

Right now, if you delete a page then you end up with a stale
entry in the search index, this affects all core SQL-based
searches.

For extensions, this means they no longer have to implement
something like ArticleDelete, they can just add the delete()
method to their SearchEngine subclass.

Change-Id: I9d8a9878aeebc53f453ab1cbacc03fe73fcca949

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 18 Jun 2013 19:46:42 +0000 (19:46 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4e865f40a8c69fdc7520bd3a89ec61ca9af57337

10 years agoMerge "Removed redundant doc comments."
jenkins-bot [Tue, 18 Jun 2013 19:13:58 +0000 (19:13 +0000)]
Merge "Removed redundant doc comments."

10 years agoMerge "Make rc_cur_id have proper value for upload log entries."
jenkins-bot [Tue, 18 Jun 2013 18:33:28 +0000 (18:33 +0000)]
Merge "Make rc_cur_id have proper value for upload log entries."

10 years agoMerge "Link to mediawiki.org page in 'edithelppage' message"
jenkins-bot [Tue, 18 Jun 2013 15:48:53 +0000 (15:48 +0000)]
Merge "Link to mediawiki.org page in 'edithelppage' message"

10 years agoMerge "Pass along tagFilter to ContribsPager, it already expects it"
jenkins-bot [Tue, 18 Jun 2013 14:39:35 +0000 (14:39 +0000)]
Merge "Pass along tagFilter to ContribsPager, it already expects it"

10 years agoPass along tagFilter to ContribsPager, it already expects it
Matthias Mullie [Mon, 17 Jun 2013 20:23:35 +0000 (22:23 +0200)]
Pass along tagFilter to ContribsPager, it already expects it

ContribsPager already has this below line:

    $this->tagFilter = isset( $options['tagfilter'] ) ? $options['tagfilter'] : false;

The reason the code already works fine is because, in ChangeTags.php, there's this fallback:

    if ( $filter_tag === false ) {
     $filter_tag = $wgRequest->getVal( 'tagfilter' );
    }

Which essentially boils down to the same result as passing along tagfilter, which in
SpecialContributions is read from $wgRequest, passed to ContribsPager, and (well, currently
not) passed to ChangeTags

Change-Id: I12c0336ae31c5524e41fa0087afe2ba104dc7d37

10 years agoOnly new vertical format login and signup forms
S Page [Wed, 5 Jun 2013 05:20:00 +0000 (22:20 -0700)]
Only new vertical format login and signup forms

* The "VForm" templates replace existing templates.
* Remove useNew switch logic and $wgUseVForm{UserLogin,CreateAccount}.
* The CSS and JS files for forms lose the .vform qualifier, except for
  the CSS for styling vform elements.
* Merge tiny mediawiki.special.userLogin.signup.js into createAccount.js.
* Remove replaced and obsolete messages (see
  https://www.mediawiki.org/wiki/Account_creation_user_experience/Strings
  for details), and remove mention of "new" forms and useNew from
  MessagesQqq.php.

Bug: 46333
Change-Id: I50f25583c3aa9a4a263fb40f50256f92c18ddb4d

10 years agoMerge "mediawiki.api: Implement login method"
jenkins-bot [Tue, 18 Jun 2013 02:51:46 +0000 (02:51 +0000)]
Merge "mediawiki.api: Implement login method"

10 years agoMake rc_cur_id have proper value for upload log entries.
Brian Wolff [Tue, 18 Jun 2013 00:11:44 +0000 (21:11 -0300)]
Make rc_cur_id have proper value for upload log entries.

Primary motivation here is to make Special:Recentchangelinked work
correctly for uploads where the description page doesn't exist yet.
(Previously it was mostly only showing reupload log entries)

Mild downside to this approach is adding the recentchanges row is
now in a different commit...

Change-Id: I74c68b972c47c03066d3065e3748769a27a654fb

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 17 Jun 2013 21:49:13 +0000 (21:49 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agotest: rework interwiki lookup in parser tests
Antoine Musso [Mon, 20 May 2013 13:21:02 +0000 (15:21 +0200)]
test: rework interwiki lookup in parser tests

Some of our parser tests lookup interwikis.  This was originally done
(parser/parserTest.inc) by inserting a set of interwikis in the database
and was later lamely copy pasted in the PHPUnit wrapped test suite
(phpunit/includes/parser/NewParserTest.php).

Since that time, we had duplicate code and had the test hitting the
database to fetch interwiki.  Nowadays, we can trick the Interwiki
lookup class by using the InterwikiLoadPrefix hook, that let us skip
database lookup entirely (by having the hook returning false) and get
rid of the duplicate code.

The good old parserTests.php still pass the tests :-]

Change-Id: I36865e3890e08a05b8a6aaafa309a87556e235b9

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 17 Jun 2013 20:53:54 +0000 (20:53 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I32973f48e15c917221cefe5d6d36a122e30cf706

10 years agoMerge "Do not output numberofviews, if $wgDisableCounters = true"
Parent5446 [Mon, 17 Jun 2013 19:22:23 +0000 (19:22 +0000)]
Merge "Do not output numberofviews, if $wgDisableCounters = true"

10 years agoDo not output numberofviews, if $wgDisableCounters = true
umherirrender [Mon, 17 Jun 2013 19:09:06 +0000 (21:09 +0200)]
Do not output numberofviews, if $wgDisableCounters = true

Follow up I9975dceedeffafadf560ed71238c51b94eb8c3ad
But now for the parser function

Change-Id: I18261b884b7f3be57a42c0b10594384fab6f9c9a

10 years agoMerge "Remove Selenium tests from core"
jenkins-bot [Mon, 17 Jun 2013 19:05:50 +0000 (19:05 +0000)]
Merge "Remove Selenium tests from core"

10 years agoMerge "jquery.makeCollapsible: cleanup"
jenkins-bot [Mon, 17 Jun 2013 18:44:49 +0000 (18:44 +0000)]
Merge "jquery.makeCollapsible: cleanup"

10 years agoFixed mysql warning about expecting a resource.
Aaron Schulz [Sun, 16 Jun 2013 22:56:41 +0000 (15:56 -0700)]
Fixed mysql warning about expecting a resource.

Change-Id: I799d063fec7a8e96f49db34ce669453bd26c3fb3

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 16 Jun 2013 20:49:38 +0000 (20:49 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"
TheDJ [Sun, 16 Jun 2013 20:41:12 +0000 (20:41 +0000)]
Merge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 16 Jun 2013 19:50:24 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I352ed34fa912240395a72e84e60f19c42fe10fb3

10 years agoResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"
Derk-Jan Hartman [Sun, 21 Apr 2013 14:38:23 +0000 (16:38 +0200)]
ResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"

This allows Javascript to access our styling information (cssRules and
related cross domain protected dom information) even if it is hosted
on a different domain.

Bug: 25886
Change-Id: I8e05c13ae1a1589fd120d5c439b1a7128ce2b659

10 years agojquery.makeCollapsible: cleanup
MatmaRex [Sat, 23 Mar 2013 14:27:46 +0000 (15:27 +0100)]
jquery.makeCollapsible: cleanup

* Ensure correct handling of togglers which hook to multiple elements
  and elements which have multiple togglers
* Move the `options === undefined` check outside the loop
  per CR on I8dd4f0d0
* Get rid of the old private toggling functions for various kinds of
  toggles (obsoleted, but left alone, in Id3f457a8)
* Don't use separate logic for initial toggling of custom togglers
* Consistently use collapseText/expandText (uppercase T) instead of
  collapsetext/expandtext (lowercase t) where possible
* Adjust comments and whitespace

Change-Id: Id8ecd8f577fb4cd3f640a7830a85436a301b3e2c

10 years agofilebackend: throw exceptions during file iteration.
Aaron Schulz [Sun, 16 Jun 2013 06:01:47 +0000 (23:01 -0700)]
filebackend: throw exceptions during file iteration.

* This lets calling code be far more robust rather than just
  silently ignoring entries due to some temporary problem.

Change-Id: I3ce2ae34f6cff5e40a80b8da5688503a387ce2a6

10 years agoRemoved redundant doc comments.
Aaron Schulz [Sun, 16 Jun 2013 05:36:23 +0000 (22:36 -0700)]
Removed redundant doc comments.

Change-Id: Iced16c6d32ef0e4d58376ed3c092a500ec917446

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 15 Jun 2013 20:09:53 +0000 (20:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ice334feb284bd21c83c26ea92705a1345d10b225

10 years agoMerge "Cleaned up variable/type order in docs."
jenkins-bot [Fri, 14 Jun 2013 22:38:43 +0000 (22:38 +0000)]
Merge "Cleaned up variable/type order in docs."

10 years agoFix typo ('associed' => 'associated').
Ori Livneh [Fri, 14 Jun 2013 22:26:00 +0000 (15:26 -0700)]
Fix typo ('associed' => 'associated').

Change-Id: I5ea2eec92ebe397f2d269562f1650e59cb969a19

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 14 Jun 2013 21:59:39 +0000 (21:59 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoFixed doc typo
Aaron Schulz [Fri, 14 Jun 2013 21:14:59 +0000 (14:14 -0700)]
Fixed doc typo

Change-Id: I1e4ab410cd02a74e667cc8611e58ad791558896a

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 14 Jun 2013 21:05:13 +0000 (21:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If58755fdcfc3c12f16436c4a245a520cb037d994

10 years agoRemove Selenium tests from core
Chad Horohoe [Fri, 14 Jun 2013 20:20:09 +0000 (16:20 -0400)]
Remove Selenium tests from core

This never really worked properly, doesn't conform to coding
conventions, and isn't actually used by anyone for testing.

Our selenium stuff these days are in the qa/browsertests repo

Change-Id: I8f1efaa118fe41821fb3f4a6099d75a33681f17b

11 years ago(bug 47449) {{#special:}} should always return a usable title
Mormegil [Sat, 20 Apr 2013 12:42:22 +0000 (14:42 +0200)]
(bug 47449) {{#special:}} should always return a usable title

{{#special:}} should always return a usable title in NS_SPECIAL,
even when given an unknown special page title. Currently, it returns
"No such special page" text for such unknown names, which is
surprising.

Bug: 47449
Change-Id: I7f184956ec9d56c849f201f1230736fcedd0fadf

11 years agoMerge "Fix FOUC on preferences."
jenkins-bot [Fri, 14 Jun 2013 03:29:59 +0000 (03:29 +0000)]
Merge "Fix FOUC on preferences."

11 years agoMerge "(Bug 48952) Show debug output in toolbar"
jenkins-bot [Fri, 14 Jun 2013 03:14:38 +0000 (03:14 +0000)]
Merge "(Bug 48952) Show debug output in toolbar"

11 years agoAPI: Fix action=parse without any page or title or text
Brad Jorsch [Fri, 10 May 2013 15:59:11 +0000 (11:59 -0400)]
API: Fix action=parse without any page or title or text

action=parse was raising an error about missing 'text' with 'title' even
when 'title' wasn't actually passed, due to a fix for bug 33865. But
this broke using action=parse to parse an edit summary without also
giving it wikitext to parse.

Instead, let's give the client a warning (unless it seems clear they
know what they are doing) and assume the empty string for 'text'.

Also, while we're editing the file, add some more examples as also
requested in bug 48319.

Bug: 48319
Change-Id: I03c1fbcb0bd31dea8bd84e164104f7ced0ace449

11 years agoMerge "Added parsoid-only tests for parsoid's native cite implementation"
jenkins-bot [Thu, 13 Jun 2013 23:45:27 +0000 (23:45 +0000)]
Merge "Added parsoid-only tests for parsoid's native cite implementation"

11 years agoMade purgeDeletedFiles.php delete files still in the public zone.
Aaron Schulz [Wed, 12 Jun 2013 17:46:37 +0000 (10:46 -0700)]
Made purgeDeletedFiles.php delete files still in the public zone.

* This makes purges more useful since the file won't come back.
* This only applies for files that are confirmed to already be
  in the deleted zone too. This is for sanity.

Change-Id: I60316c1d9323347d09607e36a334fc5eb0b6a2e7

11 years agoAdded parsoid-only tests for parsoid's native cite implementation
Subramanya Sastry [Thu, 13 Jun 2013 23:36:05 +0000 (18:36 -0500)]
Added parsoid-only tests for parsoid's native cite implementation

Change-Id: If5cf091d7c6c864f6bd90165086a19ae38ec257e

11 years agoFix patrolling where NP patrol isn't explicitly enabled
Marius Hoch [Thu, 13 Jun 2013 23:04:57 +0000 (01:04 +0200)]
Fix patrolling where NP patrol isn't explicitly enabled

Hot fix! Follow-up fc5bcf1147f9

Change-Id: Iba7e70e1a1ddd9826f6e5f4022b88ccafc5f571d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 13 Jun 2013 18:48:12 +0000 (18:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4e12c5f98fb8da8d7b83e167363668b2504b26b2

11 years agoCleaned up variable/type order in docs.
Aaron Schulz [Thu, 13 Jun 2013 18:18:52 +0000 (11:18 -0700)]
Cleaned up variable/type order in docs.

* A few other minor doc cleanups and obvious type hints.

Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c

11 years agoAPI: Fix IPv6 handling in list=blocks
Brad Jorsch [Mon, 6 May 2013 14:27:46 +0000 (10:27 -0400)]
API: Fix IPv6 handling in list=blocks

The current handling of the bkip parameter assumes IPv4, and breaks for
IPv6 CIDR ranges (it also isn't working right for IPv6 non-CIDR, but not
in an obvious way).

This rewrite handles IPv6 correctly. It also necessarily adds validation
for the bkip parameter, which would formerly return (not very sensible)
results when passed invalid values.

Bug: 48129
Change-Id: I02471bb32c3a217004d07a79d9f98b62133b31ef

11 years agoMerge "Add section preview mode to API action=parse"
jenkins-bot [Thu, 13 Jun 2013 13:50:38 +0000 (13:50 +0000)]
Merge "Add section preview mode to API action=parse"

11 years agoAvoid exceptions by first checking language code validity
Niklas Laxström [Tue, 11 Jun 2013 16:42:10 +0000 (16:42 +0000)]
Avoid exceptions by first checking language code validity

Bug: 49423
Change-Id: I3fd98ba08393856311a48fa40769027460c72ef9

11 years agoMerge "Ensure <h5> and <h6> have different computed font size"
jenkins-bot [Thu, 13 Jun 2013 06:40:36 +0000 (06:40 +0000)]
Merge "Ensure <h5> and <h6> have different computed font size"

11 years ago(Bug 48952) Show debug output in toolbar
physikerwelt [Mon, 3 Jun 2013 09:56:30 +0000 (09:56 +0000)]
(Bug 48952) Show debug output in toolbar

The debug output written with the function wfDebugLog should  be
printed to the debug toolbar in the same way as wfDebug does.

Change-Id: Ib979df080332e16c8e0e6a89eab8741986ab39c3

11 years agoPrepare DatabaseMysql for mysqli
Jakub Vrana [Fri, 3 May 2013 01:39:16 +0000 (18:39 -0700)]
Prepare DatabaseMysql for mysqli

PHP extensions mysql and mysqli have lots in common.
In order to support mysqli, this diff separates common MySQL behavior to abstract class DatabaseMysqlBase and implements the mysql-extension specific in DatabaseMysql.
Outside behavior remains the same.

I've tried to minimize future code duplication by introducing mysql*() methods even if the parent method just unwraps the result.

Bug: 45288
Change-Id: I905d4a4550377bc849a860f0962dad710d9dc71f

11 years agoFixme comment for bug 49504
Tim Starling [Wed, 12 Jun 2013 23:21:18 +0000 (09:21 +1000)]
Fixme comment for bug 49504

Change-Id: Ie229e84b299c357cfe9a2db0a5ba07713aac7597

11 years agoAdd section preview mode to API action=parse
Max Semenik [Wed, 12 Jun 2013 22:46:04 +0000 (02:46 +0400)]
Add section preview mode to API action=parse

In https://gerrit.wikimedia.org/r/#/c/67266/, it was enabled automatically
when a section was specified in preview mode. However, this only works for
previews of a saved page's content, failing for user input previews which
might contain several sections of various degrees of nestedness.

Change-Id: I987144e5e315ed9e0a67f599083461a78879c0df

11 years agoMerge "Remove non UTF-8 chars from debug output"
jenkins-bot [Wed, 12 Jun 2013 21:01:44 +0000 (21:01 +0000)]
Merge "Remove non UTF-8 chars from debug output"

11 years agoRemoved redundant documentation for some methods.
Aaron Schulz [Wed, 12 Jun 2013 05:35:37 +0000 (22:35 -0700)]
Removed redundant documentation for some methods.

Change-Id: I72f132c0b6e9a300efff6c15957f163d84e7d9c2

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 12 Jun 2013 20:04:28 +0000 (20:04 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoRemoved redundant documentation for some methods.
Aaron Schulz [Tue, 11 Jun 2013 22:09:46 +0000 (15:09 -0700)]
Removed redundant documentation for some methods.

Change-Id: Iad422716f6796cc4b69405182f4a74daa0c93663

11 years agosupport setting Memcached::OPT_SERVER_FAILURE_LIMIT, Memcached::OPT_RETRY_TIMEOUT
asher [Wed, 12 Jun 2013 19:39:39 +0000 (12:39 -0700)]
support setting Memcached::OPT_SERVER_FAILURE_LIMIT, Memcached::OPT_RETRY_TIMEOUT

Change-Id: Ib1fcae92b65e8fd23baee7af7ed64abd908b600e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 12 Jun 2013 19:14:13 +0000 (19:14 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I599770c4c8b53d0d46c74f1426168a5c3d963a81

11 years agoRemove unused searchhelp-url and searchmenu-help
Federico Leva [Wed, 12 Jun 2013 08:29:21 +0000 (10:29 +0200)]
Remove unused searchhelp-url and searchmenu-help

searchhelp-url was introduced around r43595 to improve
searchmenu-help (r43376). Both were part of a Special:Search redesign
that never really happened. Commented out in r50207, and removed
in r51228

See also Ic0469c6c51a4d54ee214347fc416615c2f6cb1f0

Change-Id: I82259bd836ba8c4a3042cb81c99165c312ca04cc

11 years agoFix return type of MessageCache::getMsgFromNamespace for existing
Tyler Anthony Romeo [Fri, 17 May 2013 12:10:31 +0000 (12:10 +0000)]
Fix return type of MessageCache::getMsgFromNamespace for existing

Functions expect the message cache to return a string if a message
exists, even empty, and false if it does not exist. This adds casting
to the substr() function, which would return false for existing
messages that were just blank.

Bug: 14176
Change-Id: Id91914a3701fe53f1e2e894824512489392c628b

11 years agoMerge "Setting tooltip gravity to 's' so that the tooltip shows above"
jenkins-bot [Tue, 11 Jun 2013 21:35:19 +0000 (21:35 +0000)]
Merge "Setting tooltip gravity to 's' so that the tooltip shows above"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 11 Jun 2013 21:01:59 +0000 (21:01 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 11 Jun 2013 19:40:00 +0000 (19:40 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I7458f257824c9b1a4f14d6cc7a9567ee454749c7

11 years agoIn 'uctop', replace 'top' with 'current' [revision]
Federico Leva [Mon, 8 Apr 2013 05:16:48 +0000 (07:16 +0200)]
In 'uctop', replace 'top' with 'current' [revision]

We can continue calling the "top revision" such in English,
but no need to confuse everyone looking at Special:Contributions.
The closest "translation" to human English would be "last",
however that can be confused with "last by you" etc.
Most translations are already "current" or "last revision/for the page".
https://translatewiki.net/w/i.php?title=Special%3ATranslations&message=Uctop&namespace=8

Also changed on en.wiki, 24 February 2013, by WilliamH:
«"top" is vague and its meaning must be inferred».
<https://en.wikipedia.org/w/index.php?title=MediaWiki:Uctop&oldid=540122804>
Kudos to the first sysop caring 9 years after complaints on talk.

Change-Id: I75d28d344d2e4e468295b0d6bbb0dcf19b459427

11 years agoSetting tooltip gravity to 's' so that the tooltip shows above
kaldari [Tue, 11 Jun 2013 18:57:59 +0000 (11:57 -0700)]
Setting tooltip gravity to 's' so that the tooltip shows above

Right now the tooltip gravity is defaulting to north which causes
the tooltip to be partially overlapped by the cursor. Setting it
to south makes it easier to read since it appears above the icon
and isn't obscured by the cursor.

Change-Id: I9aa43c9ff93fbded1b51bf34c084ec0f8cad28b7

11 years agoMerge "Only show notoken as possible API error once"
jenkins-bot [Tue, 11 Jun 2013 13:40:03 +0000 (13:40 +0000)]
Merge "Only show notoken as possible API error once"

11 years agoMerge "(bug 42253) link user in accountcreatedtext msg"
jenkins-bot [Tue, 11 Jun 2013 07:22:01 +0000 (07:22 +0000)]
Merge "(bug 42253) link user in accountcreatedtext msg"

11 years agoMerge "Remove unnecessary exception from Title::getLatestRevID()"
jenkins-bot [Tue, 11 Jun 2013 07:02:43 +0000 (07:02 +0000)]
Merge "Remove unnecessary exception from Title::getLatestRevID()"

11 years agoRemove unnecessary exception from Title::getLatestRevID()
Tim Starling [Thu, 6 Jun 2013 06:45:50 +0000 (16:45 +1000)]
Remove unnecessary exception from Title::getLatestRevID()

Bug 37209: An exception was thrown where the data cached in the Title
object was inconsistent with the data in LinkCache. It shouldn't be
surprising that this happens, since there is no guarantee that the data
was derived from the same transaction or even the same DB server.

But I don't think it is a problem worth troubling the user over, since
with $flags=0, the slave DB server will be used, and no special guarantee
of consistency should be expected by callers. If callers do need
consistency, then they should make their own arrangements to get it,
such as clearing the LinkCache.

Since we have to pick a winner, and the choice is mostly arbitrary since
it's not possible to tell which is fresher, I think LinkCache is a better
choice since the lifetime of its cache entries can be controlled.

Change-Id: I0add48463341e56fe8c155b1007487278ad2705d

11 years ago(bug 42253) link user in accountcreatedtext msg
S Page [Sat, 8 Dec 2012 02:31:25 +0000 (18:31 -0800)]
(bug 42253) link user in accountcreatedtext msg

Why not provide links to new user's page and talk page?  This is only
when a logged-in user creates a new account, so presumably he or she
knows what he's doing and appreciates the convenience links.

Also improve documentation of accountcreated in MessagesQqq.php.

Change-Id: I4e88829d8665c5c61a59877962a8a14b55c91aa0

11 years agoMerge changes I4950496e,I849c4bd1
jenkins-bot [Tue, 11 Jun 2013 03:55:40 +0000 (03:55 +0000)]
Merge changes I4950496e,I849c4bd1

* changes:
  Remove all uses of obsolete .editsection class
  Remove Wikimedia-specific hack in ParserOutput

11 years agomediawiki.api: Implement login method
Niklas Laxström [Sun, 12 May 2013 15:26:49 +0000 (15:26 +0000)]
mediawiki.api: Implement login method

Change-Id: I1113a076ff66e20ece1db9380969e7a7b5a68f1a

11 years agoAllow patrolling pages by revision id
Marius Hoch [Sun, 9 Jun 2013 00:44:01 +0000 (02:44 +0200)]
Allow patrolling pages by revision id

This became necessary as it's quite hard to
get the rc id of a change from the html after
I1e24733c.

Bug: 49259
Change-Id: Ia7d3960cf11bf8ae0fc06ae1a0f7fcfb3c080f21

11 years ago[Database] Tweaked LoadMonitor::getLagTimes() to further reduce stampedes
Aaron Schulz [Wed, 22 May 2013 23:19:16 +0000 (16:19 -0700)]
[Database] Tweaked LoadMonitor::getLagTimes() to further reduce stampedes

Change-Id: I79e3232e3e87bb298ae1a3fe214fcd2506818884

11 years agoDrop __autoload.
Daniel Friesen [Mon, 3 Jun 2013 09:13:42 +0000 (02:13 -0700)]
Drop __autoload.

spl_autoload_register exists in >=5.1.2, we require >=5.3.2
We no longer support hphpc and it looks like hhvm supports spl_autoload_register

We've got no reason to keep using __autoload.
We'll also need to exclusively use spl_autoload_register when we start using composer.json stuff.

Change-Id: I694b7b96825e5d136fa76461511efc9a002149fa

11 years agoOnly show notoken as possible API error once
Marius Hoch [Sun, 9 Jun 2013 01:14:15 +0000 (03:14 +0200)]
Only show notoken as possible API error once

Currently notoken is being listed as possible
API error twice if it's explicitly set as
required parameter and needsToken() returns
true.

See:
https://www.wikidata.org/w/api.php?action=paraminfo&modules=edit

Change-Id: Ia17c5cfa634919b43affa146df0d1dc0ff06b758

11 years agoAdd new hook AbortTalkPageEmailNotification
bsitu [Mon, 10 Jun 2013 22:11:39 +0000 (15:11 -0700)]
Add new hook AbortTalkPageEmailNotification

This hook will allow extension to disable the regular talk page email notification,
Echo is doing this with a hackish solution of setting global variable
wgEnotifUserTalk to false on the fly, this approach is problematic and will
be replaced with this hook

Change-Id: Ie043d9a1a771d64e4b05b7ddeca75c7542a6c575

11 years agoMerge "Add user rights 'editmyuserjs' and 'editmyusercss'"
jenkins-bot [Mon, 10 Jun 2013 20:58:49 +0000 (20:58 +0000)]
Merge "Add user rights 'editmyuserjs' and 'editmyusercss'"

11 years agoMerge "Remove revision patrol links from normal page views"
jenkins-bot [Mon, 10 Jun 2013 20:26:36 +0000 (20:26 +0000)]
Merge "Remove revision patrol links from normal page views"

11 years agoAdd user rights 'editmyuserjs' and 'editmyusercss'
Brad Jorsch [Mon, 10 Jun 2013 17:33:48 +0000 (13:33 -0400)]
Add user rights 'editmyuserjs' and 'editmyusercss'

These are needed for OAuth grants.

Change-Id: I52f8e4a5cb48573cb2dbc26fc508e61a95d748c3

11 years agoMerge "Revert "Introducing ContentGetParserOutput hook.""
jenkins-bot [Mon, 10 Jun 2013 19:28:08 +0000 (19:28 +0000)]
Merge "Revert "Introducing ContentGetParserOutput hook.""

11 years agoRevert "Introducing ContentGetParserOutput hook."
Ori.livneh [Mon, 10 Jun 2013 19:13:00 +0000 (19:13 +0000)]
Revert "Introducing ContentGetParserOutput hook."

This change removed getHtml(), but not the call to it from fillParserOutput.
It has a few other issues that I'll flag in-line after deploying the revert.

This reverts commit fda090a7e7f85f146ec84798fda45232ab67613e

Bug: 49398
Change-Id: Idcef8d4cedc7c03f72bc1743e0f89cc5ed4ad7a7

11 years agoMerge "Add vendor to mwdocgen's excludes list."
Parent5446 [Mon, 10 Jun 2013 18:37:56 +0000 (18:37 +0000)]
Merge "Add vendor to mwdocgen's excludes list."

11 years agoMerge "Fix bad copy-paste error in deprecated method"
Tychay [Mon, 10 Jun 2013 18:29:52 +0000 (18:29 +0000)]
Merge "Fix bad copy-paste error in deprecated method"

11 years agoMerge "mw.toolbar: Clean up code and jsduckify"
jenkins-bot [Mon, 10 Jun 2013 17:43:27 +0000 (17:43 +0000)]
Merge "mw.toolbar: Clean up code and jsduckify"

11 years agomw.toolbar: Clean up code and jsduckify
Timo Tijhof [Mon, 10 Jun 2013 02:59:17 +0000 (04:59 +0200)]
mw.toolbar: Clean up code and jsduckify

* Removed remnants of the 7th 'selectText' parameter. This
  was still tossed around in a few places, but in the function
  it ends up in (toolbar.insertTags) it is no longer used.
* Per code conventions, don't use jQuery's magic attrMap
  argument, instead call the (in this case attr) method directly.
* Optimise way we get the reference to the detached Array#slice,
  access 'slice' on local array instead of global variabile
  lookup for 'Array' and accessing prototype (learned from jQuery core).
* Link "mw.toolbar.addButton" is invalid in jsduck, members
  of modules are accessed by a hash sign. Should be
  "mw.toolbar#addButton" or even just #addButton in this case.
* Eliminated scrollEditBox function by inlining its contents into the
  $( document ).ready handler.

Change-Id: I867f2bcfd97e00a498a963e5d9730e5b0d36dcae

11 years agoUse getFileContents() instead of incorrect file system call to fetch file contents.
Aaron Schulz [Thu, 6 Jun 2013 07:34:30 +0000 (00:34 -0700)]
Use getFileContents() instead of incorrect file system call to fetch file contents.

Change-Id: I2b9be4165ae85c52ff9a9b68b9d71ec011a6c5b4