Commit graph

202 commits

Author SHA1 Message Date
Aaron Schulz
6c4360c951 Make use of Title::isSpecialPage() in various places 2011-11-02 20:55:08 +00:00
Niklas Laxström
1a05f8faf7 Converted patrol log to the new system 2011-09-19 14:21:05 +00:00
Niklas Laxström
a9c243b7b5 RevisionDeleter:
* Fixed comment of getChanges and made it public
* Removed getLogMessage and expandMessageArray, now unused
LogFormatter:
* Cache parsed parameters locally, since this function is going to be called few times for every log entry
DefaultSettings:
* Could not find any use of suppress/file log
LogPage:
* Removed old formatting code, now unused
WikiPage:
* Converted (suppress|delete)/delete logs to new format

Added DeleteLogFormatter, handles part of suppression log as well.
Updated messages.
This also addresses bug 18578.
2011-09-14 10:36:24 +00:00
Niklas Laxström
4ac56c2466 Committing my new logging classes for review. Will later commit changes that use these classes. 2011-09-07 15:32:37 +00:00
Niklas Laxström
24eef569e4 Removed old constants: 1) not used 2) because of autoloader, they have not necessarily even been available for long time. 2011-09-07 09:21:16 +00:00
Sam Reed
ad39f2da86 Trim trailing whitespace
Add/tweak/update documentation

Simplify some boolean returns
2011-09-04 21:40:17 +00:00
Siebrand Mazeland
e9e8859b80 Update whitespace and a comment. 2011-09-03 11:34:55 +00:00
Siebrand Mazeland
06c0462b41 Add some full message keys as they are used here. 2011-09-01 15:00:42 +00:00
Brian Wolff
6857bb3df6 (bug 28649) use $wgContLang->truncate on log action comments to avoid half eaten unicode chars and also adds a nice '...'
Patch by Umherirrender.
2011-08-24 23:47:54 +00:00
Alexandre Emsenhuber
e7dc5b1691 * Changed dynamic calls to Linker methods into static ones
* Also preferably pass a Language object instead of a Skin one or boolean indicating whether it's for content. No other calls to these methods in core or extensions.
2011-07-10 18:12:11 +00:00
Robin Pepermans
7c624542f0 (bug 6100; follow-up to r91315) Being bold and removing $wgBetterDirectionality (and dependent wfUILang) in core, as most or all work is finished.
Also:
* Introduce classes mw-float-end, mw-float-start so we don't have to use inline css depending on wfUILang()/$wgLang (see HistoryPage and SpecialFileDuplicateSearch)
* Add direction mark to protection log
* Remove specialpageattributes as it is obsoleted by this commit (also fixes bug 28572)
* Add two direction marks in wfSpecialList, which makes ltr links on rtl wiki (and vice versa) display nicely as well (only on those special pages however)
* Revert r91340 partially: use mw-content-ltr/rtl class anyway in shared.css. Both ways have their [dis]advantages...
* Set the direction of input fields by default to the content language direction (except buttons etc.) in shared.css
2011-07-06 02:26:06 +00:00
Aaron Schulz
6f8addb365 Follow-up r90749: use a new 'autopromote' action for the autopromote rights log entries. Removed the 'rightsautocomment' msg. 2011-06-26 21:44:55 +00:00
Sam Reed
c73746981c Param documentation updates/added 2011-05-26 19:21:50 +00:00
Sam Reed
12a9b1d2fb More documentation tweaks and updates 2011-05-21 19:54:24 +00:00
Sam Reed
33ad682ab0 Add/remove/tweak method documentation 2011-05-19 00:03:31 +00:00
Happy-melon
a9038b2c26 Some more documentation and replacing static Skin calls 2011-04-16 23:23:28 +00:00
Chad Horohoe
efe4525d2c Merge r81448 from REL1_17: reverting RevisionMove feature back out until somebody has the time to work on it again. Reverts r67094 and its followups in trunk: r67099, r67111, r67112, r67115, r67398, r81425, r81427 2011-04-15 23:28:13 +00:00
Niklas Laxström
fe6efad016 Fix mistake in r80248 and restructure a bit 2011-01-15 12:46:37 +00:00
Daniel Friesen
39ab3cfc9f Implement Message::isBlank and Message::isDisabled.
And while we're at it... update a random assortment of code using wfEmptyMsg to use the new wfMessage class and our exists/isBlank/isDisabled methods.
2011-01-14 10:51:05 +00:00
Roan Kattouw
2cedd4be96 (bug 25839) Set class="blockExpiry" and dir="ltr" (bug suggested direction: ltr; in CSS, but that doesn't work in this case) on the <span> containing the block expiry in Special:Log. It seems strange to unconditionally set dir="ltr" on something that may contain text in an RTL language, but it seems to leave the latter alone while fixing the display of ISO 8601 timestamps. It's definitely possible there's another issue with dir="ltr" that I overlooked here, so if this does break display of other expiries in RTL, please revert. 2010-11-08 15:23:42 +00:00
Jack Phoenix
9d8b35fe81 coding style tweaks 2010-08-21 12:00:28 +00:00
Alexandre Emsenhuber
29d6b582a1 Seems I forgot to commit these files in r70699 2010-08-08 14:28:01 +00:00
Platonides
a9b5c1402c Remove all calls to $wgMessageCache->loadAllMessages()
Deprecated and empty since r52503
2010-08-03 19:15:43 +00:00
Tobias
d73fb3713e New feature RevisionMove (bug 21312). Introducing SpecialRevisionMove.php and revisionmove permission. Experimental, use at own risk (no group has this permission by default, so it should not break anything unless you are foolish enough to experiment with it :)) 2010-05-30 18:00:01 +00:00
Alexandre Emsenhuber
3883ef644d Fixed some doxygen warnings and documented a bit 2010-05-18 20:59:14 +00:00
Alexandre Emsenhuber
ec6a5d1612 * (bug 16817) Group names in user rights log are now singular and in lowercase 2010-04-08 10:15:04 +00:00
Platonides
12e8349571 RevisionDeleter has added i18n to his friends list.
(bug 22903) Revdelete log entries now show in the user preferred language.
2010-03-22 22:28:15 +00:00
Mark A. Hershberger
c871b75a3e follow up r62231, r61779, r62175
* Fix up messages
* For new FileRepo::append(), use flags to determine whether to delete or not
* Add more error checking for appending
* Fix a couple of places in Revision.php and LogPage.php where DB errors were produced when comment was null
* Remove bogus checking for !$comment, etc on the DONE phase of chunked uploading
* Don't pretend to return a value when raising an exception
* Add more tests for chunked uploads
* Verify that Status::getErrorsArray() (at least where it is used in ApiUpload::execute()) returns an array that we can pass to dieUsageMessage()
* Ensure that checkWarnings(), etc work only on the complete file
2010-02-22 02:15:30 +00:00
Alexandre Emsenhuber
586be1e1eb * (bug 9794) User rights log entries for foreign user now links to the foreign user's page if possible 2010-01-09 15:23:27 +00:00
Sam Reed
b6e0df246f Attempt at normalistion of comparison styles - empty string on left and right hand side normalised to it being on the rhs
Before this change, there were (? being regex 0 or 1)

"" ===? 1
'' ===? 24
"" !==? 8
'' !==? 32

== "" 14
== '' 344
!= "" 9
!== "" 4
!= '' 151
!== '' 85


Rhs was the much more common, and the preferred style by many developers.. (Was a similar discussion in #mediawiki recently.. After that lolbugreport i think)

Where there is a string (non empty) on the lhs, and variable/method call on the rhs still need normalising
2010-01-06 19:59:42 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
OverlordQ
a989843cd0 Code cleanup, covert leading spaces into tabs per coding style 2009-11-14 21:27:13 +00:00
Jure Kajzer
785ad24aa7 Changed sequence names to a standard <table>_<field>_seq form.
Updated all nextSequenceValue calls with new sequence names.
OverlordQ stated he'll handle changes to Postgres scripts.
Need someone to change DB2 scripts.
2009-10-28 16:17:16 +00:00
Aaron Schulz
53fae36849 bug 20701: fixed strange breakage from r53173 2009-09-17 20:20:45 +00:00
Aaron Schulz
a8e60c1930 Set log_page on save 2009-09-16 13:28:01 +00:00
Aaron Schulz
7d2ed15a8c (bug 19864) Removed overzealous hiding of deleted (but not suppressed) rows from log/contribs list from sysops 2009-07-30 14:08:25 +00:00
Alexandre Emsenhuber
7ef830f8a8 (bug 19839) fix for r53173: Comments in log items are no more double escaped 2009-07-20 12:07:07 +00:00
Aaron Schulz
ce17d249dc (bug 19596) Fix more fucked up garbage from when $types was made into an array in various places. Log headers were missing. 2009-07-20 05:38:26 +00:00
Tim Starling
c35dba3c04 Fix dodgy uses of wfMsgHtml() and related HTML escaping 2009-07-13 15:36:41 +00:00
Aaron Schulz
97a54fd112 Fill in log_user_text column on log save 2009-06-27 10:17:01 +00:00
Siebrand Mazeland
8e23949bee Proper casing for getDBkey() 2009-05-24 08:29:10 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
Aaron Schulz
8432c504c3 Tweaks to r50567:
* Improved exception handling
* Removed redundant ls_log_id cond
* Added log_type to getLogQueryCond()
* Don't show duplicate rows in log results
* populateLogSearch now handles an older log_param format
2009-05-14 19:49:33 +00:00
Aaron Schulz
a69fb48274 [schema change] Use new log_search table to replace ugly code from r48839. Maintenance script added to populate the table with revisiondelete log items. 2009-05-13 22:03:32 +00:00
Siebrand Mazeland
547858b7fe Use link() instead of deprecated makeLinkObj() where possible. 2009-05-08 23:24:31 +00:00
Aaron Schulz
819ce6fa6a reverted change committed by mistake 2009-04-16 04:53:43 +00:00
Aaron Schulz
799911d7e5 Tweaked r49408: Improved hiding and changed 1 revision case handling 2009-04-16 04:51:43 +00:00
Aaron Schulz
6089178e53 use correct item for count display 2009-04-11 17:46:55 +00:00
Aaron Schulz
ec0dd5b272 (bug 18361) Suppression log should be in the UI language, not content language 2009-04-10 20:01:10 +00:00
Aaron Schulz
45e366b33f * Log unsuppressed names in the suppress log as normal
* Fixed reblock action display
* Add hiddenname flag and msg
2009-03-14 10:02:17 +00:00