Commit graph

160 commits

Author SHA1 Message Date
Alexandre Emsenhuber
991c975fd0 * Follow-up r63914: SpecialPage has methods for that, use them ;)
* Fix a case mismatch in LogEventsList.php
2010-03-18 17:36:43 +00:00
Aaron Schulz
a780a43df9 * Split up logLine() with helper functions
* Added NO_EXTRA_USER_LINKS param to hide talk|contribs links
* Fixed bizarre $time comparison (compared display time and a UNIX const time)
* Added 'flags' param to showLogExtract() params
2010-03-01 22:47:12 +00:00
Tobias
001b4fe211 provided option for showLogExtract to wrap result. Added log for create protected page 2010-01-16 11:24:23 +00:00
Alexandre Emsenhuber
71745e17f3 * If two log type have the same description, they're now both displayed in the type selector on Special:Log
This just happened on the French Wiktionary where http://fr.wiktionary.org/wiki/MediaWiki:Suppressionlog and http://fr.wiktionary.org/wiki/MediaWiki:Dellogpage had the same value and the "delete" log was missing
2010-01-01 19:49:37 +00:00
Aryeh Gregor
66f4b07051 Delete refs to variable removed in r59692 2009-12-11 19:43:04 +00:00
Alexandre Emsenhuber
0f0e1b307d * (bug 21559) "logempty" message is now wrapped in a div with class "mw-warning-logempty" when used in log extract 2009-12-04 18:37:54 +00:00
OverlordQ
7a42a4da7e (bug 20150): Change query to explicity select distinct rows instead of doing it using a group by, RevDelete works on PG now 2009-12-03 02:37:49 +00:00
Aaron Schulz
7610cc4ba6 Restored r59537 - fixed silly typo 2009-11-29 16:39:47 +00:00
Siebrand Mazeland
11892fcc51 Revert r59537. Breaks page deletion with "PHP Notice: Array to string conversion in /var/www/w/includes/db/Database.php on line 1433" and ""IndexPager::reallyDoQuery (LogPager)". Database returned error "1176: Key 'Array' doesn't exist in table 'logging' (localhost)"." 2009-11-29 10:49:47 +00:00
Aaron Schulz
56aeff78e3 * Made log_user_type_time index available when needed
* Don't allow type,time index when 2+ types are given
* Make sure $this->types becomes an array in limitType() ('' -> array() case was left out)
* A few code style tweaks
2009-11-29 00:01:21 +00:00
Aaron Schulz
90dcb3c1f2 * bug 21267 change "show/hide" to "show", if user cannot submit Special:Revisiondelete
* Added revDeleteLinkDisabled() function
2009-10-30 02:14:22 +00:00
Max Semenik
ae57ab1eec (bug 20275) Fixed LIKE queries on SQLite backend
* All manually built LIKE queries in the core are replaced with a wrapper function Database::buildLike()
* This function automatically performs all escaping, so Database::escapeLike() is now almost never used
2009-10-21 19:53:03 +00:00
Alexandre Emsenhuber
25f9a38bfe * (bug 21079) There is no more line wrapping between label and field in Special:Log 2009-10-17 08:29:15 +00:00
Aaron Schulz
ffd4b0f837 Refactored unmaintainable userCan() code by making central userCanBitfield() functions 2009-10-15 11:31:33 +00:00
Aaron Schulz
631fbc8029 Removed inapplicable deletedtext userCan() check 2009-10-15 10:46:28 +00:00
Alexandre Emsenhuber
5fc70f85f9 * removed trailing spaces
* spacing fixes
2009-10-11 19:55:56 +00:00
Domas Mituzas
c51f0d34e3 um, don't die with fatal error? 2009-10-10 20:44:46 +00:00
Aaron Schulz
193f333a38 blank invalid usernames for "revision author" field too 2009-10-10 02:48:19 +00:00
Aaron Schulz
89d0686a19 Fill in class names for r57530 2009-10-10 02:12:53 +00:00
Aaron Schulz
6309a1f175 Follow up r57530 elsewhere 2009-10-09 19:01:39 +00:00
Aaron Schulz
332d1421c0 Made log extracts default to 25 items 2009-10-02 18:04:58 +00:00
Aaron Schulz
c2f7ea4d7b * Renamed deletedcontent to deletedtext
* Removed deletedrevision and used deletedhistory/deletedtext instead
2009-09-30 19:50:35 +00:00
Aaron Schulz
942a84716a * Split off deletedrevision (view only) right and give it to sysops
* Allow show/hide link on top revision just like history
2009-09-28 03:09:48 +00:00
Tobias
98303b05be Follow-up on r55909: showLogExtract can now tell Pager to ignore wgRequest offset. Needed for block notice on SpecialContributions. Also small fix for SpecialBlockip (after r56420) 2009-09-20 22:07:44 +00:00
Niklas Laxström
c4a604a984 Shut up warnings from r56420 that have annoyed us few days :o 2009-09-18 13:57:13 +00:00
Tobias
bebaf1325d Follow-up on r56284: LogEventsList::showLogExtract gets associative array for additional parameters. Adjusted all calls that use additional parameters. Also improved Special:Blockip, which now uses those new parameters instead of using own functions. Fixed HistoryPage which was broken with r56251. 2009-09-16 17:17:16 +00:00
Siebrand Mazeland
b0fbc438d2 Follow-up to r56324 per IRC comments by Nikerabbit: coding style updated 2009-09-14 19:56:22 +00:00
Siebrand Mazeland
c17bd28e1e Support GENDER in 'renameuser-renamed-notice', changing LogEventsList::showLogExtract for that:
* param $msgKey from String to Array, where first element is the message key, additional elements are parameters for the key

Comment by Nikerabbit: "... that is cargo train number of parameters :o". I tried not to make it worse.
2009-09-14 18:58:25 +00:00
Alex Z
71a97237b5 Replace the user rename log display for non-existent userpages with a hook (followup to r56251).
Update for Renameuser extension to follow.

Also make docs for LogEventsList::showLogExtract() actually useful
2009-09-14 18:10:13 +00:00
Aaron Schulz
89870efc54 bug 18472 Suppression log filtered by "offender", as Oversight log can be 2009-09-14 17:09:13 +00:00
Alex Z
68eb4a8aeb Fixes for r56284:
* Parse the message shown in the box
* Fix undefined variable notice
2009-09-14 02:17:31 +00:00
Tobias
666a552694 Follow-up on r56251 - merging showLogs and showLogExtract 2009-09-13 22:21:11 +00:00
Happy-melon
19e3322915 (bug 18880) Make LogEventsList::showLogExtract() more versatile by allowing it to take a string-by-reference instead of OutputPage; hence allowing it to be used for buffered content. 2009-08-31 11:54:53 +00:00
Andrew Garrett
c54d80c9cf Rewrite some spaghetti code in Special:Log to fix invalid HTML, now uses proper Xml:: methods 2009-08-10 17:36:57 +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
Aaron Schulz
3df971b423 Add diff links to suppress log for deleted revs too 2009-07-26 10:05:50 +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
Siebrand Mazeland
2f82bccb39 Use localised parentheses and $wgLang->pipeList() instead of hardcoded parentheses and pipe characters. 2009-07-19 14:47:03 +00:00
Aaron Schulz
390eb15b79 Fix bogus var reference 2009-06-22 03:06:04 +00:00
Siebrand Mazeland
6f9d6cbcf9 Fix double escaping issues. Related to r51559 and friends. 2009-06-15 12:32:59 +00:00
Jure Kajzer
c3fafd96f7 Added bitwise operations to DatabaseBase and overloaded in DatabaseOracle. 2009-06-13 06:31:38 +00:00
Aaron Schulz
d151328e13 Follow up to r51465, replaced old index name reference (gave errors) 2009-06-09 01:38:55 +00:00
Siebrand Mazeland
7661bbeba5 Replace a few remaining uses of deprecated makeKnownLinkObj() by link[Known]() in core. Only uses in core remaining are in includes/Linker.php (all related to deprecated methods) and includes/parser/Parser.php.
Linking this to r51559 for CodeReview as there is some discussion there, and these changes are very similar.
2009-06-08 10:07:33 +00:00
Siebrand Mazeland
38ca12aa82 * replace some use of deprecated makeKnownLinkObj() by link() in core
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
* add FIXME in Parser.php and LogEventsList.php where I didn't know how to replace makeKnownLinkObj by link()
* return type for private method Skin::editUrlOptions() changed from string to array
* some code readability improvements

Linking this to r51559 for CodeReview as there is some discussion there, and these changes are very similar.

Todo: core special pages
2009-06-07 15:02:12 +00:00
Tim Starling
bc35951c93 In Special:RevisionDelete:
* Refactored to remove massive duplication
* Removed page parameter and associated contextPage member variable, doesn't seem to do anything.
* Put ID lists into a single ids parameter and member variable instead of having one for each type.
* Fixed inappropriate call of Title::newFromUrl(), always wrong
* Don't pretend to use the return value from functions that don't return anything, this reduces readability.
* Use the table names for deleteKey/typeName values, they look more like English
* Use protected not private
* Remove requirement for log type to be specified in the target
* Use POST for RevisionDelete entry forms, to avoid URL size limits and issues with non-PATH_INFO URLs
* Don't purge all pages that use the given file
* LocalFile::purgeCache() already calls purgeHistory,() no need to do it again. But do call purgeDescription(). 
* Removed token from unhide=1 links, unnecessary
* Tokens are necessary on file streaming links, added them
* Fixed private data leakage due to incorrect use of LocalRepo::newFromArchiveName(). Non-existent placeholder file was returned which meant that $oimage->userCan(File::DELETED_FILE) was always true. Pass the archive name to tryShowFile() instead of the storage key.
* Using ls_field='oi_timestamp' is not correct, oi_timestamp refers to the timestamp of the revision in question, whereas the key that is stored is the timestamp of the previous revision (i.e. the timestamp in oi_archive_name). oi_archive_name would be more correct, although only half the field is used.

Elsewhere:
* Added missing message filehist-missing
* Fixed double asterisk in Status::getWikiText()
* Fixed escaping of the target parameter to Special:RevisionDelete from ImagePage
* Deleted FileStore.php. Deprecated in filerepo refactor except for get()/export() but somehow resurrected by RevisionDelete. Hopefully this will be the end of it. New interfaces will be added for wfStreamFile() in a later commit.
* Added convenience function File::getStorageKey(), factored out of Special:Undelete
* Added convenience function Revision::newFromArchiveRow(), factored out of Special:Undelete and Special:RevisionDelete
* Fixed notice in Special:Upload, uninitialised $pageText

FIXME: current revision can be suppressed on undeletion causing an unauthenticated unsuppress. Comments indicate this is a known issue. I fixed the parser cache pollution in this case but not the rest.
2009-06-01 11:37:06 +00:00
X!
fa15782409 (bug 19014) If user had deletedhistory right, but not undeleted right, then
show "view" instead of "view/restore" on logs.
2009-05-30 21:17:17 +00:00
Tim Starling
cb3bbe1809 Implemented save/restore logic for sql_big_selects, per CR comments on r50168. 2009-05-27 06:10:48 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
Aaron Schulz
d43c8027f5 (bug 17060) Renders edit comments the same for all users wrt to revdelete 2009-05-19 19:19:41 +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