Commit graph

47 commits

Author SHA1 Message Date
umherirrender
91fc59e12d Remove LogEventsList::showHeader() (deprecated since 1.19)
Change-Id: I9575329cb09f495f47032028d3693f8046b3e139
2014-06-24 20:13:27 +02: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
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
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
Ebrahim Byagowi
2cb5ce0379 i18n: Make LogEventsList user language direction aware
Bug: 58685
Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda
2013-12-19 18:08:19 +00:00
jenkins-bot
5c5255e227 Merge "Update documentation for log related classes" 2013-12-06 00:28:29 +00:00
jenkins-bot
1a60a9bd41 Merge "Set saner default for parameters of LogEventsList::showOptions()" 2013-12-05 23:29:25 +00:00
Siebrand Mazeland
e64f4d9f12 Update documentation for log related classes
Change-Id: I4e00cda46cc7bbcbd17ac2d3d025a76281ee84b6
2013-12-06 00:07:12 +01:00
jenkins-bot
64308ea107 Merge "Add deprecation warnings for log related methods" 2013-12-04 14:42:07 +00:00
Siebrand Mazeland
a222eb8767 Add deprecation warnings for log related methods
* LogEventsList::getDisplayTitle() was deprecated in 1.20.
* LogPage::logHeader() was deprecated in 1.19.
* LogPage::logName() was deprecated in 1.19.

No remaining uses in core.

Change-Id: I073f11a7776f6e3809d20d50e61e57486b77f494
2013-12-03 21:57:08 +00:00
Siebrand Mazeland
91c4204fc1 Remove unneeded else{} in LogEventsList::userCanBitfield()
Change-Id: I85c0db0637edb87eec7ec5b335e88113a3d8ebe2
2013-12-03 21:54:46 +00:00
Siebrand Mazeland
271eb32122 Set saner default for parameters of LogEventsList::showOptions()
Also cast input for Xml::dateMenu().

Change-Id: I28f9184626b01cce4a8080ba3337af0b3f941484
2013-12-03 21:54:09 +00:00
Siebrand Mazeland
86fe1da236 Break long lines in logging related classes
Also:
* Take function call out of for loop test part.
* Suppress CodeSniffer warnings for unavoidable long lines.

Change-Id: I14044f14b30d494d910541a1dac50921254a7398
2013-12-03 15:58:51 +01:00
Siebrand Mazeland
8a536b8591 Update formatting for log related classes
Change-Id: I6535467ed9b22d61b7c5caf3f18067a988871751
2013-12-03 15:36:21 +01:00
shirayuki
1b8155403c Give grep a chance to find the usages
Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b
2013-09-05 18:29:47 +09:00
umherirrender
15ff79312d Fixed spacing and removed unneeded parenthesis
Added spaces after/before parenthesis
Removed unneeded parenthesis around some statements
Broke a long line

Change-Id: I7fbe129f7bbf524dd0598ece2a9708643f08453b
2013-05-17 16:12:08 +00:00
Brad Jorsch
38a74c7c78 (bug 25592) LogEventsList:showLogExtract should ignore WebRequest
LogEventsList:showLogExtract currently pays attention to WebRequest
parameters such as offset, dir, order, and limit (although limit is
typically overridden by callers, and offset sometimes too).

While these make sense for a pager that is driving the whole page, it
doesn't make much sense for the "most recent log entry" boxes that are
displayed using LogEventsList:showLogExtract. So let's have
LogEventsList:showLogExtract ignore these, and for good measure add in a
parameter to use the old behavior in case any caller really needs that.

Change-Id: Id4380cd863ba69fc9b9afb5a0034d82ad4d9cc34
2013-04-22 09:42:44 -04:00
umherirrender
6c38a5eb72 Fixed spacing in logging/parser/profiler/rl/revdel/search folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I11bbcfa351e945b7bde10c2105d61a3cf5622205
2013-04-20 17:38:24 +02:00
umherirrender
15abcf71ca Added/Removed spaces around string concatenation
And added/removed spaces around some other tokens,
like +, -, *, /, <, >, =, !

Fixed windows newline style

Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8
2013-04-13 13:36:24 +02:00
Tyler Anthony Romeo
4dcc7961df Fixed @param tags to conform with Doxygen format.
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
Reedy
c3e4057e06 Kill off numerous unused variables
Change-Id: I7039f1328f37ee669b694f73ee282602186bffd1
2013-03-08 02:36:24 +00:00
umherirrender
ca31ebad3f fix some spacing
Added/removed spaces after opening/before closing parentheses

Added a space after a comma

Removed unneeded parentheses in condition

Change-Id: I306091347ccaaf11dee0cdfda3019cb0c12be51b
2013-02-09 23:03:53 +01:00
umherirrender
be90ce07b3 fix some spacing
Change-Id: I93f0a87ba7129bc336083e7289247d3150feb606
2013-02-04 19:54:07 +00:00
umherirrender
2e8da558ba fix some spacing
Change-Id: Id7eda67a43f9040117edd79fdbeb678f1c3a6da2
2013-01-26 22:11:09 +01:00
umherirrender
cefb9ef907 Pass user to LogEventsList::getExcludeClause
This avoids $wgUser in that method

Also removed the double strencode for logtypes,
that is already done by Database::addQuotes/Database::makeList

Change-Id: I5f7f6da06594d92375f74ca48c04d180505642a9
2012-12-19 15:59:54 +00:00
umherirrender
27b9ecc6f9 Do not use Checkboxes for user without deletelogentry in log
When a user has only deletedhistory and not deletelogentry he should not
see checkboxes, because the button at the begin of the page is missing
and than the checkbox is useless. Use links instead, as the history page
does.

Change-Id: Icae8267dcf3032437eae08372ddbe5769bed7a86
2012-09-21 15:16:29 +02:00
Siebrand Mazeland
21b592d1ad Replace deprecated methods.
Also updated code formatting.

Change-Id: I188b5d29c9496383df10c391b29e9d26e59e8aeb
2012-09-08 00:28:16 +02:00
Alexandre Emsenhuber
e93fa029e2 Moved "action links" from LogEventsList to LogFormatter.
* This allow extensions to set both action text and links directly
  from a subclass LogFormatter instead of having to use the LogLine
  hooks for this purpose.
* Moved stuff for logs that already use a subclass of LogFormatter
  there and the remaining in LegacyLogFormatter. I had to an hack
  there so that the pass-by-ref of the comment parameter in the
  LogLine hook still works.
* Removed RevisionDeleter::getLogLinks(), included it directly in
  DeleteLogFormatter::getActionLinks(); it have a so ugly signature
  that is very hard to use it somewhere else (and maintain backward
  compatibility too).
* Removed the message caching system in LogEventsList since it's
  not used anymore.
* Some misc cleanup to LogEventsList::logLine()

Change-Id: I96d696eed2ae35f5f5640e422ceb0a5b0c33babf
2012-08-15 11:02:50 +02:00
Alexandre Emsenhuber
a4b2e8f98a Fix missing occurence change in I6b69919a (747e89e).
The line above changed in that revision, but not this one,
so I highly suspect that this occurence of deleterevision
should have been changed to deletelogentry.

Change-Id: Ief4ca9acf08bccc8ff064cea5795a2dbeae44d19
2012-07-22 21:03:43 +02:00
Alex Monk
747e89ed57 (bug 37926) Split 'deleterevision' right for log entries
This change adds a new permission ('deletelogentry') which is required to be able
to delete log entries.

It does not affect who can see deleted content.

Change-Id: I6b69919a1bdc502becc1ae4ac9169b8b0e85bfdc
2012-07-21 20:34:23 +01:00
Antoine Musso
12e608e3d5 converts '@fixme' to '@todo FIXME'
@fixme is simply not recognized by doxygen whereas @todo is used to
generate a nice ... todo list!!

Change-Id: If956c0a164373126ce48b791d45c56962034eecd
2012-07-10 17:16:46 +02:00
Antoine Musso
d5737f8f17 update @param @return doc in several files
Change-Id: I0e23227330f90dc4121fd2a313d2e9a33c3c97a7
2012-07-10 17:08:52 +02:00
Alexandre Emsenhuber
9712def705 Made LogEventsList extend ContextSource and use local context instead of global variables there.
Modified the constructor so that it simply needs a IContextSource in the first parameter, but it
still accepts a Skin object instead. The second parameter is now unused. Updated SpecialLog accordingly.

Change-Id: I6dde2a23d98568abe10e92f0761ae3be7c65a856
2012-06-25 22:17:17 +02:00
Alexandre Emsenhuber
f00a54ffb8 Fixes to LogEventsList.
* Removed useless variables
* Use Linker::linkKnown() instead of Linker::link() where possible

Change-Id: I7cb668ef929cee159946a46cbcb07464a0913f81
2012-06-15 22:04:44 +02:00
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Aaron
c2443ec058 Fixed bit math logic error in 0e765f8405.
Change-Id: Idfba3971f9c2d47967d1210352d8fb25583834e0
2012-06-05 10:10:11 -07:00
Alex Monk
0e765f8405 Show revdel links instead of checkboxes on pages where there is no multiple log entry revdel form.
Change-Id: Ie061ee5b77a39c13628bfdb73f09cb3fa97dd090
2012-05-30 19:43:38 +01:00
Alex Monk
961a8d1e7f (bug 20189) Added 'Show/hide selected revisions' button and checkboxes to Special:Log.
Change-Id: I2c4d4e1234d5ab9f7d514831351ea3b298811165
2012-05-08 02:32:15 +01:00
Siebrand Mazeland
fe9cd7ef73 (bug 34702) More localised parentheses. 2012-02-28 12:41:26 +00:00
Sam Reed
85bbb0b080 Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 18:01:10 +00:00
Antoine Musso
fc6bc233be Fix doxygen docs before REL1_19 branching 2012-02-01 20:53:38 +00:00
Niklas Laxström
b18bef923b Split LogPager out of LogEventsList.php 2012-01-20 09:44:39 +00:00
Krinkle
be12ebf1ab [Core JS] More fixing of global config variable usage
* mw.config is the new way, and global config variable lookups are deprecated

* Based on two phase3-wide quick searches:
-- of " wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=321&hash=81700bf7486e4fee3b7bc1f83eb9eba6
-- of "!wg": http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=327&hash=47c9d54a7a1d5d58a724dd834585f40d

Related changes:
* Changed some php comments mentioning "wg" variables to include the dollar sign, and a typo when the wf function prefix was meant.
* Removed TODO comment in wikibits.js and made it use the JS equivalent of wfUrlencode, which we have now, mw.util.wikiUrlencode 
* SpecialUpload.php: use OutputPage::addJsConfigVars instead of creating a new script tag through OutputPage::addScript(Skin::makeVariablesScript(..))
* Renamed wgUploadSetup in upload.js and made it local. Not used anywhere in ./trunk/phase3 and ./trunk/extensions
* Fix OutputPage::addJsConfigVars so that it can actually be called with an array instead of two arguments for key/value
* Some minor whitespace/convention stuff around the same line
2011-12-31 21:25:00 +00:00
Brian Wolff
957850f0da If you request LogEventList to display the combination of 2 log types, and one of
those logs are restricted, will generate a warning, since it removes first entry of
array, but doesn't re-index the array, and subsequent code makes assumptions of the
form if ( count( $this->types ) $singleType = $this->types[0] (which doesn't work, as
first index is 1).

Thus cause array to be re-indexed if a $wgLogRestriction causes a log type to be removed.

Steps to reproduce the issue is make deletion log restricted, then view a (non-existent) user page.

Personally I think its kind of weird/wrong that if someone restricts both the move and delete log,
then viewing a non-existent will give "This page has been deleted, here's delete log:" followed by an
entry from *any* public log.
2011-12-20 06:16:08 +00:00
Jeroen De Dauw
ed8d203227 move logging pages to logging dir 2011-12-14 22:48:48 +00:00
Renamed from includes/LogEventsList.php (Browse further)