Commit graph

60109 commits

Author SHA1 Message Date
Kunal Mehta
24c000ea80 Add and use Title::getOtherPage()
Change-Id: I40a51c14ce07c301c15c6c2128cc18bb12e71103
2014-12-04 17:45:05 -08:00
jenkins-bot
1e1ae0ffb1 Merge "Add SVG versions of table pager icons" 2014-12-04 22:34:23 +00:00
Ljudusika
3af635d705 Add SVG versions of table pager icons
Google Code-In 2014 - Ljudusika.

Bug: T71944
Change-Id: Ia9d9271fe0930a3826976585c694b561371dd32a
2014-12-04 23:25:38 +01:00
Marius Hoch
3d3d36fcdd Fix DatabaseBase::replaceVars for PHP 5.3
Change-Id: I78a535abfe3f444b2ccb99638a63b6f16c9f18af
2014-12-04 23:14:00 +01:00
jenkins-bot
e9e0bff301 Merge "Hygiene: rename formheader to searchProfileTabs on Special:Search" 2014-12-04 21:49:15 +00:00
jenkins-bot
40da41acca Merge "Revert "Remove deprecated profiling config parameters, clarify docs"" 2014-12-04 21:46:31 +00:00
Rob Moen
5466de4ef7 Hygiene: rename formheader to searchProfileTabs on Special:Search
It's not a header, its out of the form now, boiled down, it's
some search profile terms laid out in tabs.

Change-Id: Ic6ec29817ab7deadc6bc7125f8b4cd16686baa04
2014-12-04 21:42:46 +00:00
Aaron Schulz
7dba64f2c1 Revert "Remove deprecated profiling config parameters, clarify docs"
StatCounter still needs $wgUDPProfilerHost.

This reverts commit 88c42dc1df.

Change-Id: I4a56f6fb6bc454d15a9dc752f45dfb29b2b47a84
2014-12-04 21:40:13 +00:00
jenkins-bot
03110e938d Merge "Remove deprecated profiling config parameters, clarify docs" 2014-12-04 21:12:30 +00:00
Translation updater bot
b68cec9cc8 Localisation updates from https://translatewiki.net.
Change-Id: I7f9787dfd402817f21686bcbe2ccafce6e224269
2014-12-04 21:58:32 +01:00
Chad Horohoe
88c42dc1df Remove deprecated profiling config parameters, clarify docs
We've already broken profiling completely in this release. Make
this abundantly clear in the RELEASE-NOTES and just remove the
awful back-compat attempt from I2af28cd3 and I49c0a83e.

Change-Id: Ib0b87192e2a6e87db19f7821906dd7b2063081e3
2014-12-04 12:51:19 -08:00
Elliott Eggleston
0600c197d3 Revert wrapping sitenotice in google tags
Reverts change I95473e22de83e585044a4f917bbd1b00db7db71b

Change-Id: Ia522064df15b959e22e81abe2c607687ec2a29cb
2014-12-04 20:29:54 +00:00
jenkins-bot
8b800b9239 Merge "Split things out of search element on Special:Search" 2014-12-04 20:18:27 +00:00
Ejegg
7f54095cb3 Merge "Prevent Google indexing of the SiteNotice div" 2014-12-04 20:15:44 +00:00
Erik Bernhardson
2a09e50c82 Hygiene: RemoveInvalidEmails maint script not in autoloader
Change-Id: Ib1a54898b07a1f47f99e7004a12e6829280a4857
2014-12-04 20:05:17 +00:00
Aaron Schulz
dcd639f9f9 Switched hook profiling to use scopedProfileIn
* Also made scopedProfileOut handle the case where the callback
  was null (e.g. when there are no frame methods for xhprof).

Change-Id: Ife242bda8e046990d0d8ac27d628975b7b4a14d7
2014-12-04 19:32:38 +00:00
jenkins-bot
4f5f9776ad Merge "Changed some DatabaseBase type hints to IDatabase" 2014-12-04 19:08:00 +00:00
Adam Roses Wight
d79e175a69 Prevent Google indexing of the SiteNotice div
Site notice and CentralNotice should be omitted from search snippets.
We're diluting page content.

The awkward thing about this patch is that we can only confirm the
googleoff tag is supported for the search appliance, not the public
web crawler.  See here for those docs, though:
http://static.googleusercontent.com/media/www.google.com/en/us/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/admin_crawl/admin_crawl.pdf

Change-Id: I95473e22de83e585044a4f917bbd1b00db7db71b
2014-12-04 19:01:13 +00:00
Kunal Mehta
1168b3f38d removeInvalidEmails.php: Fix batching continuation for wikis with >500 users
Change-Id: I6343aa204ddd68e9685630b67ac0b0ca535b426b
2014-12-04 10:40:25 -08:00
jenkins-bot
d1804d386d Merge "Darken the text color in successbox" 2014-12-04 09:44:46 +00:00
Kunal Mehta
7fe5b87e8c Make LocalisationCache::getMessagesDirs() public
So it can be used inside LocalisationUpdate

Change-Id: I2399ddd7fd4462f2c6d1bf81036af451a67c58b1
2014-12-03 23:46:47 -08:00
jenkins-bot
0add9d5ba7 Merge "Remove Profiler::isStub()" 2014-12-04 07:42:27 +00:00
jenkins-bot
9946d66d46 Merge "Fix up interwiki search results in API" 2014-12-04 05:30:48 +00:00
Chad Horohoe
52f3b13312 Remove Profiler::isStub()
Just check for ProfilerStub directly.

Change-Id: I503916599f182df4206da5282193ae6ec9324ee6
2014-12-03 20:19:56 -08:00
Ori Livneh
c4f67e5a3a Don't attempt to stash new section edits
The parser output of edits produced via the 'new section' interface varies on
both the edit body and the edit summary (since it determines the new section's
name). So there isn't an early point in the edit process where we can start
computing the edit output. We have to wait for the user to be completely
done, by which point edit-stashing provides no advantage.

Change-Id: Ida461e08189b75c5a508628d11dc929a6138814a
2014-12-03 18:19:20 -08:00
Ori Livneh
afd317ac50 Make ApiStashEdit use the StashEdit log group, rather than PreparedEdit
An early version of what ultimately became commit 3a6c9d36c used
'ApiPreparedEdit' instead of 'ApiStashEdit'. The class / file were renamed but
not the log group.

Change-Id: Ib4de1f1f21f058d3be627048bc93e7730515d340
2014-12-03 17:27:01 -08:00
Rob Moen
e1885cf3e6 Split things out of search element on Special:Search
While keeping these in the same order, pulling them out of the form
helps mobile display search suggestions on non RL devices.

Change-Id: Id267f66485b95788e682b912e8d2540c826d83fd
2014-12-04 00:25:42 +00:00
jenkins-bot
e45f365a6f Merge "Use quickUserCan() for the undelete link message" 2014-12-04 00:09:56 +00:00
Aaron Schulz
189d1ea641 Use quickUserCan() for the undelete link message
* This was taking 267.304ms on https://en.wikipedia.org/wiki/Tammar_wallaby for admins

Change-Id: I0e669869e1990502331a80de168562421ac5336d
2014-12-03 16:01:26 -08:00
jenkins-bot
4d51a7057f Merge "Move core message dirs from $wgMessagesDirs to LocalisationCache::getMessagesDirs()" 2014-12-03 23:46:58 +00:00
Aaron Schulz
cd9931fd65 Removed useless "use" clause from closure
Change-Id: Ie2e0328548b185e77b919c0b8bd18a5005d94037
2014-12-03 23:34:00 +00:00
Aaron Schulz
3a6c9d36c9 Added ApiStashEdit module for pre-emptive edit parsing
* This lets edits be prepared while users enter edit summaries.
* The edit form will now make use of this API, controlled by
  $wgAjaxEditStash.

Change-Id: I4f4057bc0d1d4a66a8f7cfb7cdc26d443a8eb0c4
2014-12-03 22:38:41 +00:00
jenkins-bot
30e009794b Merge "If a user logs in while not on https, then the user should be sent back to the non-secure website." 2014-12-03 22:36:23 +00:00
Kunal Mehta
27d21e3117 Move core message dirs from $wgMessagesDirs to LocalisationCache::getMessagesDirs()
If $wgMessagesDirs is initially empty, we can optimize when batch loading
extensions:

    if ( !$wgMessagesDirs ) {
        $wgMessagesDirs = $cache['MessagesDirs'];
    }

With APC, this should be O(1) CPU time.

This was suggested by Tim in the code review of I7074b65d07c5.

Change-Id: I66fa907cdaafe18b74b5b9afaa8b6b1db069bea3
2014-12-03 14:32:18 -08:00
Aaron Schulz
d5fa948648 Removed low signal wfDebugLog call in DatabaseBase
Change-Id: I231766b6a1a1651508bb03fa137e6b2b55c55e6a
2014-12-03 14:09:33 -08:00
Aaron Schulz
efde278c82 Log backtraces for DB reconnections
Change-Id: Ibe7badde80bf6a44e292b89fe6c085cbda5748e2
2014-12-03 21:55:26 +00:00
jenkins-bot
4770a3a93d Merge "Before pseudo elements are not always perfectly in line" 2014-12-03 21:30:34 +00:00
jenkins-bot
c7d63d70ff Merge "Database: Remove use of strencode() in replaceVars()" 2014-12-03 21:13:22 +00:00
jenkins-bot
230444c9af Merge "Add removeInvalidEmails.php maintenance script" 2014-12-03 21:11:00 +00:00
jenkins-bot
b7c79a9dc0 Merge "Deprecated $wgProfilePerHost" 2014-12-03 21:00:56 +00:00
Translation updater bot
489fbaabc1 Merge "Localisation updates from https://translatewiki.net." 2014-12-03 21:00:53 +00:00
jenkins-bot
c7a978c3b6 Merge "Deprecated $wgUDPProfilerHost, $wgUDPProfilerPort and $wgUDPProfilerFormatString" 2014-12-03 20:59:11 +00:00
Translation updater bot
71b5975e2b Localisation updates from https://translatewiki.net.
Change-Id: I38970b3004ea686f55507fdb36bd701a511287d8
2014-12-03 21:58:20 +01:00
Kunal Mehta
6002ee6d4b Add removeInvalidEmails.php maintenance script
The script scans the user table and removes emails
that are technically invalid which don't pass
Sanitizer::validateEmail(), and wouldn't be allowed
today. Confirmed emails are skipped entirely since
they had to be valid at some point.

Bug: T76512
Change-Id: I3cc6396ff6d8b738846b7716b4b0cddc9bf9e1a4
2014-12-03 12:24:33 -08:00
jenkins-bot
6a6e72cc98 Merge "OutputPage: Add accessors for some protected properties" 2014-12-03 19:30:32 +00:00
Chad Horohoe
62eb676265 Deprecated $wgProfilePerHost
Change-Id: I2af28cd3083228136789cff5feadd7b16c509e5b
2014-12-03 11:21:03 -08:00
Chad Horohoe
10f0683134 Deprecated $wgUDPProfilerHost, $wgUDPProfilerPort and $wgUDPProfilerFormatString
All can be passed as options to $wgProfiler now.

Change-Id: I49c0a83e0d386be0f66d6703fc358089e4b1f59f
2014-12-03 11:13:00 -08:00
Rob Moen
b7dc19a958 Before pseudo elements are not always perfectly in line
This results in the psudo element's top inline with the element's
top

Change-Id: Iadd741f02155a9b5ddeb6cd8ff64fa13ae5506d7
2014-12-03 18:40:20 +00:00
Chad Horohoe
dbca12bf93 Stop using $wgProfileToDatabase
Was not completely removed and the remaining bits were mostly
broken. $wgProfiler['output'] = 'db' is the proper way.

Fixes T75917
Change-Id: I36565e2372db2ed49b219cf533ec433e8111c52f
2014-12-03 10:37:03 -08:00
Kunal Mehta
0406f3d61b OutputPage: Add accessors for some protected properties
Bug: T76168
Change-Id: Iee11c217b6b0d35acfdfac916814521acda2b1a4
2014-12-03 09:40:15 -08:00