Commit graph

212 commits

Author SHA1 Message Date
jenkins-bot
4051e77a3e Merge "Apply time adjust on merge log" 2014-12-29 22:22:19 +00:00
Niklas Laxström
5e969b82d1 Escape word-separator in LogFormatter
Change-Id: I9428f5ff5b95d09932b3588f0118d6992a384390
2014-12-29 20:08:20 +00:00
umherirrender
7fb05cc84e Apply time adjust on merge log
The merge log params contains a revision timestamp in UTC, this needs
time adjust in case of users with a timezone in the settings.

Change-Id: I1612a33307667fa767e80a6061c013ea0f10b0a6
2014-12-28 20:36:00 +01:00
Aaron Schulz
e369f66d00 Replace wfRunHooks calls with direct Hooks::run calls
* This avoids the overhead of an extra function call

Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd
2014-12-10 12:26:59 -08:00
Aaron Schulz
09d9413795 Fixed regression that made log queries happen in spite of the bloom filter
Change-Id: I50f280a1db30cb1f9901a55a8a9558ebb2a9dffd
2014-11-20 09:03:29 +00:00
jenkins-bot
dd53b928b9 Merge "Add two hooks to allow for extensions to expose log_search values in the UI" 2014-11-06 23:00:16 +00:00
Fomafix
3055160858 Use getHtmlCode() instead of getCode() to set the lang attribute
The lang attribute of HTML elements should conform to BCP 47.

Bug: 72939
Change-Id: I9b4a734753af2c9dd7256eec60781553bc76edbf
2014-11-06 14:53:57 +00:00
Aaron Schulz
e7d5b09d1d Made LogEventsList use the log bloom filter, not just the Article class
Change-Id: I6c523d4ecd60dab080537cabc5aa1c632950e018
2014-11-03 21:44:15 +00:00
Kunal Mehta
777dd95cdf Add two hooks to allow for extensions to expose log_search values in the UI
* SpecialLogAddLogSearchRelations
   Allows for adding the extra conditions needed by the query

* LogEventsListGetExtraInputs
   Allows for adding extra input fields to interface

Bug: 70850
Change-Id: If8bdbadd882d67cae82c862c7c38000e9329b04f
2014-10-28 10:59:36 -07:00
umherirrender
daa4d556bb Move MergeLogFormatter to 1.25
Follow-Up: I0557a0d2751540cf0d7967333ffd767b934011c6
Change-Id: Id18ba7d925062d795bd129af255cc902e48d30f6
2014-10-21 21:56:46 +02:00
umherirrender
52f5634ba0 Migrate merge log to new log system
This allows use of gender on Special:Log
Old message is kept for use in irc,
a test is added to ensure a unchanged irc message.

Change-Id: I0557a0d2751540cf0d7967333ffd767b934011c6
2014-10-21 16:49:06 +00:00
Alex Monk
91ba0535b2 Implement autocompletion for Performer field on Special:Log
Bug: 48241
Change-Id: I5e6af5aba56de613f10f862aaf064aaa32b5b176
2014-09-30 01:03:55 +00:00
umherirrender
6ed0a552b5 Remove LogEventsList::getDisplayTitle (deprecated 1.20)
Change-Id: If8306adec1cd64064280f8ffa1163237ee427cf2
2014-09-26 14:36:13 -07:00
jenkins-bot
4b3e1b6d53 Merge "Remove 'move' from LogPage::getTitleLink" 2014-09-22 17:41:38 +00:00
umherirrender
6af7983621 Unset redirect param in MoveLogFormatter::getMessageParameters
The redirect param is used to get a different message key, so there is
no need to pass it to the message, because the value is stable.
'logentry-move-move' always get a '0' and
'logentry-move-move-noredirect' always a '1'
The value is only visible with uselang=qqx

Change-Id: Ib6a3303e7401e29561165355b3611c3c123bfcd0
2014-09-20 17:06:02 +02:00
umherirrender
1ac209eba8 Remove 'move' from LogPage::getTitleLink
LogPage::getTitleLink only called for log types which are in
$wgLogActions, but move is not there.

Change-Id: I230b25988f9a420970d807437263798e5ad1db69
2014-09-19 19:51:33 +00:00
jenkins-bot
9d5d3b688d Merge "Show the revision list immediately on "umerge" log action links" 2014-09-10 18:05:50 +00:00
Aaron Schulz
a9ba7d45f4 Added BloomCache classes
* Implemented a version of BloomCache using Redis
* Added a BloomCheckTitleHasLogs handler class for avoiding
  slow logging table queries when large amounts of 404 pages
  are viewed (by various web crawlers at the moment).

bug: 67439
Change-Id: I26e5034755e3a7208a45991b1cf2f12467679cc1
2014-09-03 17:43:21 +00:00
Aaron Schulz
bf8a180ab3 Show the revision list immediately on "umerge" log action links
Change-Id: I47804a54321fa317b36428d67c24b71d8c27a667
2014-08-27 16:55:43 -07:00
umherirrender
7c6a25856c Add missing @return to function docs
Change-Id: I45b9d02f94ecc58372268ec5e6a0b572a0b7e2a9
2014-08-23 23:14:57 +02:00
umherirrender
b883e8c7c0 Cleanup some docs (includes/[e-l])
- Swap "$variable type" to "type $variable"
- Added missing types
- Fixed spacing inside docs
- Makes beginning of @param/@return/@var/@throws in capital
- Changed some types to match the more common spelling

Change-Id: I41a84e8e1dec39170aa655250325ffc485eaeaef
2014-07-24 19:43:03 +02:00
Leon Liesener
acc16e85f3 Adjusted show/hide links
This change replaces checkboxes with show links for users
with the 'viewsuppressed' right assigned who cannot
hide/unhide suppressed revisions.

Change-Id: Id575b9830c84a17075ba6d10a5a305a38afd94e2
2014-07-21 23:50:42 +02:00
Marius Hoch
dc3d642809 Make sure $doUserRightsLogLike is set all the times
This fixes a PHP notice

Change-Id: I09b0b0c051b250b1e0a8e937948aaf2c48d17f7c
2014-07-21 22:42:09 +02:00
jenkins-bot
b2645d8284 Merge "Allow wildcard searching in wiki IDs for interwiki user rights logs" 2014-07-21 18:39:20 +00:00
Leon Liesener
3091b49e77 Shortened too long lines
Change-Id: Ia82162dd52b3fea7e76c1f47cb66bce3b7927cef
2014-07-20 20:10:37 +02:00
eikes
2f002458d5 Split "suppressrevision" into two user rights
In this change, a new passive user right named "viewsuppressed"
which can be used in order to view suppressed page content was added
to MediaWiki core.
Furthermore, this right was also added to the list of available rights,
to qqq.json and to en.json where also the description of the
"suppressrevision" right was adjusted in order to reflect reality.

Bug: 20476
Change-Id: Id1baacb9c782763db5e05ef8b5c1b761997efcc9
2014-07-19 18:11:15 +02:00
umherirrender
bb9cf3a490 Change mixed @param doc for PatrolLog::record
Change-Id: I5323144faa48eb7da8db15a5aa143e103029961f
2014-07-06 06:06:07 +00:00
Kunal Grover
50144cd02a First version of Page Language selector
Special page PageLanguage to set the page language of a page.
To enable the feature, set $wgPageLanguageUseDB to true
and assign the 'pagelang' user right to a user group.

Bug: 35489
Change-Id: I0f82b146fbe948f917c1c5d29f7469644d797e80
2014-06-27 23:27:07 +00:00
umherirrender
91fc59e12d Remove LogEventsList::showHeader() (deprecated since 1.19)
Change-Id: I9575329cb09f495f47032028d3693f8046b3e139
2014-06-24 20:13:27 +02:00
jenkins-bot
f93d34fb75 Merge "Allow adding Deleted log entries" 2014-05-30 21:58:54 +00:00
umherirrender
d2effb755b Allow LogEntry::setRelations to work with array(tag => value)
Change-Id: I5a3d9799cd2125a02871b1c6a9ef7745eadb518d
2014-05-15 16:38:41 +00:00
csteipp
34d4901f73 Allow adding Deleted log entries
Set log_deleted when a LogEntry object's deleted property is set.

Bug: 63650
Change-Id: Iebd6f7442cba5176d112eb613e2b7ca2e67e37b1
2014-04-28 15:28:41 -07:00
umherirrender
b45420410f Fixed some @params documentation (includes/*)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: Iced714bca004756b461b66067a49a925a7e3b877
2014-04-19 22:22:20 +02:00
Bartosz Dziewoński
59002d8935 Consistently use '@deprecated since <version>'
Variants included 'in <version>', 'as of <version>' and just the
version number.

Some @deprecated annotations do not have the version number at all,
I want to hunt them down separately.

Change-Id: I8208c6097098f4735d4f51bc42254675f1f27f6d
2014-04-15 22:18:19 +02:00
umherirrender
30305e7ce8 Add 'messages used' comment
Change-Id: I69acea2a1f0a1ef6854d2ebddda446f86086633e
2014-04-13 15:47:07 +00:00
umherirrender
4ae5fb99b0 Format archive and filearchive revision delete log entries
DeleteLogFormatter only checks for revision and oldimage, but it is also
possible to delete archived revisions or archived files, so also check
for these types to have better formatted log entries.

Change-Id: I3f8eaa3956e2c7fc216fb4030fe4bab6cb8bbd60
2014-04-13 15:31:14 +00:00
umherirrender
725d9d125d Removed unneeded spaces and colons in @param and friends
Also swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.

Change-Id: Ic36c8c7820a6c2d603f1138130670c6bf6a1ca59
2014-04-08 16:02:49 +00:00
umherirrender
edc924869f Changed some comments from /// to /** @var */
Change-Id: I55b30099e4464c272c35bcabbddbb0b1364a5d65
2014-04-07 05:01:19 +00:00
umherirrender
23fab68274 Fix spacing after @param and friends in comments
Searched for:
\@(param|return|throws|since|deprecated|access|todo|var)[ \t]{2,}

Change-Id: Icce22ba9fe0635455691ca58d9872d618151f346
2014-04-05 20:02:29 +00:00
Ladsgroup
a90f1a2d79 Changing URLs of mediawiki.org in scripts to the SSL-based website
http://www.mediawiki.org --> https://www.mediawiki.org

Part 3

Change-Id: Ica633881b1744fa2854f4b012b79dbf5a7e5e7e2
2014-03-13 22:28:14 +00:00
Kartik Mistry
2daafebc77 Do not use jargon in comment.
* luser -> user

Change-Id: Iab8033dea8f0cbf628563ca5434f3d939fe6b3df
2014-02-06 17:13:28 +05:30
Brian Wolff
a2cd62c677 Use master db for showing log extract on RevDel success page
On revision delete success, we show an excerpt from the log,
it is very confusing when that excerpt doesn't include the
action that you just did.

Bug: 57033
Change-Id: Ica79bf76243f7ab7a2a0fb40689c34bd2ffc0297
2014-01-29 18:04:04 +00:00
Alex Monk
3f2f32abfe Allow wildcard searching in wiki IDs for interwiki user rights logs
Bug: 10545
Change-Id: I21331d44e5501af3322d0f48dc52001ac5579402
2014-01-25 04:11:17 +00:00
jenkins-bot
eb881d4822 Merge "Return void for LogPager::limitPerformer and limitTitle" 2014-01-02 17:55:23 +00:00
umherirrender
073abe3e12 No variable assignment on return statement
Split the variable assignment and the return statement in two lines for
better readability.

When there was two return statements in one method the logic was swapped
to have only one return statement.

Change-Id: Id7a01b4a2df96036435f9e1a9be5678dd124b0af
2014-01-02 09:43:35 +00:00
nullzero
5c06f5f517 LogEntry: Make newFromRow work with RC object
LogEntry::newFromRow is supposed to give a RCDatabaseLogEntry
if the given row is a RC log entry. The previous code only did
this if an array was passed as the $row argument.

This adds a type cast and fixes the function so that the proper
LogEntry subclass is returned no matter what variable type is
passed to the function.

Bug: 52053
Change-Id: I6f64358837b37c54d00a7544e9e8a92c216bbe89
2013-12-31 10:49:13 +00:00
Siebrand Mazeland
142017ca97 Return void for LogPager::limitPerformer and limitTitle
Previously, return values were inconsistent, and according to Chad,
no callers are interested in a return value.

Change-Id: Ib55e7a1c775953f8e90af4b4dedca403c33ac42d
2013-12-30 20:52:51 +01:00
Siebrand Mazeland
c64fc2f380 Update documentation related to newFromRow and formatRow
Change-Id: I65e5923c4dc3a63bd9cdbbc5fdcb572ab0cb9cae
2013-12-27 13:56:52 +01:00
jenkins-bot
8751d6a10f Merge "Declare visibility on log class related properties" 2013-12-26 18:40:53 +00:00
Jackmcbarn
d0664545ec Allow searching for IPs' logs
Update limitPerformer to search for IPs based on log_user_text, rather
than preventing any results from being returned. Also, make a
corresponding adjustment to list=logevents in the API, and remove
indexes to match the LogPager code.

Bug: 58691
Bug: 54404
Change-Id: Iae3f4ee5c7fba5b0b0f4f8fb3e67ac054c7b8dd7
2013-12-23 16:41:39 -05:00