Siebrand Mazeland
afb4e332a9
Add tests
...
* Fix all issues so tests pass.
* Rework deprecated functions. Compatibility is now with
MediaWiki 1.23 or later.
Change-Id: I08a0be7df48f9a39951cdc4edd4091fd4b89eade
2015-10-03 16:41:51 +01:00
umherirrender
9983344e93
Replace deprecated $wgSpecialPageGroups
...
$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead
Change-Id: Ia23a52accbaa19b0d451bb0941facc765b4a6db1
2015-05-15 21:49:35 +02:00
glaisher
0dd7b21d44
Add 'Invert' checkbox selection feature to Special:Nuke
...
This will add a 'Invert' button next to Select: All, None
in Special:Nuke allowing to invert checkbox selection making
it easy to select many pages with a few clicks.
Bug: T86549
Change-Id: Id74369dc1cd6884e53367f4103a3b50254394641
2015-03-12 21:34:00 +05:00
umherirrender
7dbf09ea72
Escape messages on Special:Nuke
...
Bug: T85864
Change-Id: I194bb55c54791d5283c41c098a2fba15bcccb1bb
2015-02-07 14:39:43 +01:00
PiRSquared17
bbe87b5441
Autocomplete username on Special:Nuke
...
Uses mediawiki.userSuggest.
Change-Id: Ia4ab7fe67c8ef370ddcecc33201ae7399370b2c8
2014-11-26 01:53:08 +00:00
Krenair
e433ffdb84
(bug 43554) Set initial focus on Special:Nuke
...
Change-Id: I76e5130e0c1778cebec9803283b1f164e15e9409
2013-02-17 16:59:11 +00:00
Siebrand Mazeland
92f5365979
Add explicit GENDER support for all relevant messages.
...
Change-Id: I1135fbb398c7b83961131dc558e415133a3a2ec7
2012-10-20 19:41:44 +02:00
jeroendedauw
c76b38b0b9
Added option to limit page selection by namespace
...
Change-Id: I0dda69485c36980c7425fa21c25f5926ca47049f
2012-10-06 21:48:47 +02:00
jeroendedauw
8ee8bbb8da
updated calls to getEditToken and updated stuff for v1.1.6
...
Change-Id: Ieaaa384947ba42683068d7d19a6d1d9ab08f36d1
2012-08-17 16:43:17 +02:00
Siebrand Mazeland
215854daf4
Nuke extension maintenance.
...
* Slightly improved an i18n issue in SpecialNuke::listForm()
* Use Message class where possible.
* Bumped version two points (hadn't been done for 1.1.5).
* Updated documentation for a method.
* Fix spacing in i18n file.
* Update .gitignore.
Change-Id: Ibec4d5279d58f08c84f64fa544a5348f6128a15d
2012-08-16 15:38:16 +02:00
jeroendedauw
c19313dbfb
fix compatibility with MW 1.18
...
Change-Id: I5027ba42fb5ab03660ae378597b1fc911e078dee
2012-06-02 17:08:09 +02:00
Marcin Cieślak
c9dc7fe742
(bug 35214) Special:Nuke allows deletions even when blocked
...
Patch 2: Adjusted whitespace
Change-Id: I4040f5551060accfa51d4ff12b1cae73040e6efe
2012-03-23 12:30:52 -04:00
Marcin Cieślak
3cf0615529
Followup to rr113364: Sometimes
...
Change-Id: I5ad1c9cf1c2d4dde80610ec7daab23389c28fc6a
2012-03-22 13:07:26 -07:00
Marcin Cieślak
e689c5d00f
Fix bug 23600: column "recentchanges.rc_timestamp" should be in GROUP BY
...
PostgreSQL error:
Query: SELECT rc_namespace,rc_title,rc_timestamp,COUNT(*) AS edits FROM recentchanges WHERE rc_user_text = 'Dnessett' AND ((rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')) GROUP BY rc_namespace, rc_title ORDER BY rc_timestamp DESC Function: SpecialNuke::getNewPages Error: 1 ERROR: column "recentchanges.rc_timestamp" must appear in the GROUP BY clause or be used in an aggregate function
Backtrace:
Thanks-To:
Change-Id: I8804b0e88d483c0563bdf304fa6aad8373a14ab3
13:15 [freenode] -!- Tuju [~tuju@176.75.219.213.sta.estpak.ee ]
13:15 [freenode] -!- ircname : Juha Tuomala
13:15 [freenode] -!- channels : #mediawiki
13:15 [freenode] -!- server : kornbluth.freenode.net [Frankfurt, Germany]
13:15 [freenode] -!- account : Tuju
13:15 [freenode] -!- End of WHOIS
2012-03-22 13:07:22 -07:00
Roan Kattouw
e727fb90fb
Revert r113364, r113598, r113604, r113793, r113795. Unreviewed changes in Nuke.
...
All of these revisions are tagged with 'gerritmigration' and will be resubmitted into Gerrit after the Gerrit switchover. See also http://lists.wikimedia.org/pipermail/wikitech-l/2012-March/059124.html
2012-03-21 19:25:49 +00:00
Marcin Cieślak
51e8493910
(bug 35214) Special:Nuke allows deletions even when blocked
2012-03-14 01:58:01 +00:00
Marcin Cieślak
c56370bf33
bug 16985: Show number of recent edits in Special:Nuke
...
One aggregate query only to get list of recent changes
matching the criteria.
Bumping extension version + adding myself to credits.
Followup-To: r108602 r108871
i18n: remove nuke-viewchanges introduced in r111298
2012-03-12 00:18:08 +00:00
Marcin Cieślak
9eff49aea5
Followup to rr113364: Sometimes
2012-03-11 22:58:58 +00:00
Marcin Cieślak
20c756ac0b
Fix bug 23600: column "recentchanges.rc_timestamp" should be in GROUP BY
...
PostgreSQL error:
Query: SELECT rc_namespace,rc_title,rc_timestamp,COUNT(*) AS edits FROM recentchanges WHERE rc_user_text = 'Dnessett' AND ((rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')) GROUP BY rc_namespace, rc_title ORDER BY rc_timestamp DESC Function: SpecialNuke::getNewPages Error: 1 ERROR: column "recentchanges.rc_timestamp" must appear in the GROUP BY clause or be used in an aggregate function
Backtrace:
#0 /usr/local/src/mediawiki/MW_1_13_2/phase3/includes/db/Database.php(561): DatabasePostgres->reportQueryError('ERROR: column ...', 1, 'SELECT rc_name...', 'SpecialNuke::ge...', false)
#1 /usr/local/src/mediawiki/MW_1_13_2/phase3/includes/db/Database.php(969): Database->query('SELECT rc_name...', 'SpecialNuke::ge...')
#2 /usr/local/src/mediawiki/MW_1_13_2/phase3/extensions/Nuke/Nuke_body.php(132): Database->select('recentchanges', Array, Array, 'SpecialNuke::ge...', Array)
#3 /usr/local/src/mediawiki/MW_1_13_2/phase3/extensions/Nuke/Nuke_body.php(68): SpecialNuke->getNewPages('Dnessett')
#4 /usr/local/src/mediawiki/MW_1_13_2/phase3/extensions/Nuke/Nuke_body.php(42): SpecialNuke->listForm('Dnessett', 'Mass removal of...')
#5 /usr/local/src/mediawiki/MW_1_13_2/phase3/includes/SpecialPage.php(534): SpecialNuke->execute(NULL)
#6 /usr/local/src/mediawiki/MW_1_13_2/phase3/includes/Wiki.php(224): SpecialPage::executePath(Object(Title))
#7 /usr/local/src/mediawiki/MW_1_13_2/phase3/includes/Wiki.php(55): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#8 /usr/local/src/mediawiki/MW_1_13_2/phase3/index.php(93): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}
Thanks-To:
13:15 [freenode] -!- Tuju [~tuju@176.75.219.213.sta.estpak.ee ]
13:15 [freenode] -!- ircname : Juha Tuomala
13:15 [freenode] -!- channels : #mediawiki
13:15 [freenode] -!- server : kornbluth.freenode.net [Frankfurt, Germany]
13:15 [freenode] -!- account : Tuju
13:15 [freenode] -!- End of WHOIS
2012-03-08 13:28:01 +00:00
Jeroen De Dauw
4e3aa8fcd3
Follow up to r108871; -m
2012-02-12 14:45:29 +00:00
Sam Reed
2d918ec529
Revert most of r108602
...
For such a minor cosmetic fix, having to do a query per result row is just daft
2012-01-13 22:59:39 +00:00
Sam Reed
a45af09c07
Minor stylistic changes
...
Don't attempt to return values returned by void methods
Kill freeResult
Minor documentation
2012-01-13 22:45:24 +00:00
Jeroen De Dauw
7fbbea0f0c
fix bug 16985 based on attached patch by Nakon
2012-01-11 09:34:47 +00:00
Robin Pepermans
9924f686cd
Make the messages labels for the input
2011-12-18 18:44:30 +00:00
Robin Pepermans
b8e937db7e
follow-up r105066: makeKnownLinkObj() is deprecated
2011-12-03 19:28:35 +00:00
Robin Pepermans
57a9ab8331
Split the default reason for single users and multiple users; easier for translators. The "nuke-multiplepeople" was substituted as parameter one (in the user language!!). Also include a link to the contributions in parameter 1 of "nuke-defaultreason".
...
Some other small changes: whitespace fixes, update getLang() -> getLanguage(), call Linker statically, increase the reason input box size
2011-12-03 12:28:29 +00:00
Sam Reed
44bb215160
"else if" -> "elseif"
2011-11-25 00:20:54 +00:00
Jeroen De Dauw
6133cddd5b
got rid of inline js and made use of jQuery
2011-11-10 17:40:32 +00:00
Jeroen De Dauw
531d451e3c
killed globals
2011-11-10 17:22:05 +00:00
Jeroen De Dauw
b89d07b5c4
implemented sql like match feature as suggested in bug 5835 and fixed regression causing the list of pages to be not shown when not specifying a user
2011-11-10 17:04:38 +00:00
Jeroen De Dauw
2848522f3a
Follow up to r82136;
2011-10-18 22:46:31 +00:00
Sam Reed
21041dd44b
Fix whitespace
...
Add comments
2011-09-27 16:17:06 +00:00
Alexandre Emsenhuber
282af6de94
Now that the hooks ArticleDelete and ArticleDeleteComplete are called from WikiPage::doDeleteArticle() and not anymore from Article::doDelete(), let's call the former and handle ourself the output
2011-07-10 07:00:09 +00:00
Brian Wolff
46c369b58c
revert 70005 - Causes bug where if a revision is imported on an already existing page, special:nuke
...
will delete the whole page, where it is expected to only delete the page if the user is only one to contribute.
Also breaks listing file uploads (reported by Manuelt15 on irc).
2011-02-26 00:35:45 +00:00
Jeroen De Dauw
e14680fe0b
Added a changable limit and the option to not filter the recent changes on a single user
2011-02-14 20:21:02 +00:00
Sam Reed
ad4ac718be
Like r81204, fixup other usages of getThumbnail in extensions (One extension, Nuke, is one we care about...)
2011-01-30 08:11:59 +00:00
Sam Reed
ed86c3b901
Remove unused variable, it's done explicitally inline further down
2011-01-23 09:51:55 +00:00
Ryan Kaldari
ad3f2f39a7
quick fix for bug 26185
2010-12-01 20:46:05 +00:00
Sam Reed
8f5809c8cc
Conditionals in loops to foreachs
2010-10-29 21:30:20 +00:00
Sam Reed
99bd0a3153
Start removing/fixing calls to deprecated methods in WMF used extensions
2010-10-29 15:14:44 +00:00
Sam Reed
ea44675046
Fixup r70005 per CR (Hey, I only applied the patch ;))
2010-07-31 19:25:54 +00:00
Sam Reed
0934e34500
*(bug 9120) Special:Nuke does not list imported page
...
Patch by Frank Ralf
2010-07-27 12:00:30 +00:00
Aryeh Gregor
eaef492c15
Remove most named character references from output
...
Recommit of r66254 to trunk. This was just
find extensions phase3 -iname '*.php' \! -iname '*.i18n.php' \! -iname 'Messages*.php' \! -iname '*_Messages.php' -exec sed -i 's/ /\ /g;s/—/―/g;s/•/•/g;s/á/á/g;s/´/´/g;s/à/à/g;s/α/α/g;s/ä/ä/g;s/ç/ç/g;s/©/©/g;s/↓/↓/g;s/°/°/g;s/é/é/g;s/ê/ê/g;s/ë/ë/g;s/è/è/g;s/€/€/g;s/↔//g;s/…/…/g;s/í/í/g;s/ì/ì/g;s/←/←/g;s/“/“/g;s/·/·/g;s/−/−/g;s/–/–/g;s/ó/ó/g;s/ô/ô/g;s/œ/œ/g;s/ò/ò/g;s/õ/õ/g;s/ö/ö/g;s/£/£/g;s/′/′/g;s/″/″/g;s/»/»/g;s/→/→/g;s/”/”/g;s/Σ/Σ/g;s/×/×/g;s/ú/ú/g;s/↑/↑/g;s/ü/ü/g;s/¥/¥/g' {} +
followed by reading over every single line of the resulting diff and
fixing a whole bunch of false positives. The reason for this change is
given in <http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html >.
I cleared it with Tim and Brion on IRC before committing. It might
cause a few problems, but I tried to be careful; please report any
issues.
I skipped all messages files. I plan to make a follow-up commit that
alters wfMsgExt() with 'escapenoentities' to sanitize all the entities.
That way, the only messages that will be problems will be ones that
output raw HTML, and we want to get rid of those anyway.
This should get rid of all named entities everywhere except messages. I
skipped a few things like   that I noticed in manual inspection,
because they weren't well-formed XML anyway.
Also, to everyone who uses non-breaking spaces when they could use a
normal space, or nothing at all, or CSS padding: I still hate you. Die.
2010-05-30 17:33:59 +00:00
Chad Horohoe
8276142e35
Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.
2010-05-27 15:56:53 +00:00
Chad Horohoe
4eef8b25fd
Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
2010-05-26 22:25:32 +00:00
Platonides
df7dc07005
(Bug 23600) Use single quotes for the string on SQL.
...
On Postgres text is quoted by single quotes and double quotes
are used for identifiers.
Thus Postgres gives out the error "Column upload does not exist".
2010-05-20 14:08:30 +00:00
Siebrand Mazeland
856ed5c0c2
Rename to remove "Special" prefix from filenames. Update Configure and Translate accordingly.
2010-04-18 11:53:49 +00:00