Kunal Mehta
d4e5fff8dc
Don't use NS_IMAGE
...
Change-Id: Icabf2534963ce2701402f211327f7f39b61735cc
2016-09-27 20:32:25 -07:00
Glaisher
7ca1ef8fb7
Special:Nuke: Remove submit button at the top of the form
...
There's already another submit button at the bottom of the form.
Since this button at the top is very close to the select links
and it is easy to unintentionally click on the submit button
while attempting to click a select link, remove the button at
the top. A submit button at the bottom is also how we normally
have in other forms.
Bug: T145346
Change-Id: If0b21aea8ef8f1762bdafc98527de06f04d59703
2016-09-13 20:44:03 +05:00
Glaisher
262cf1b4d3
Cleanup SpecialNuke::execute()
...
Change-Id: I4427b1becedd29a41ed03b76dde66d13f5098941
2016-05-26 15:18:34 +00:00
Glaisher
b923b4185f
SpecialNuke: Use msg() instead of wfMessage()
...
Change-Id: Ibd61966dad6c547f84d084ccef8441f70de8ff2b
2016-05-26 10:17:11 +00:00
Glaisher
c8720544c6
Use ListToggle to generate select checkboxes in Special:Nuke
...
ListToggle was introduced in 1.27 so the old code has been kept for
backwards-compatibility. ListToggle has several benefits that this
extension's current code doesn't have:
- Non-working links are not visible for no-JS users.
- Browser back button works correctly even after selecting a link here
Change-Id: I5bcfa944478a71112324ca684daa9235718c7d2b
2016-05-25 21:07:09 +05:00
Siebrand Mazeland
cfccbc52d8
Use mediawiki-codesniffer 0.6.0
...
Change-Id: I8a36102f403d6711d6ac3089a4d6fb1c8c52de9b
2016-03-07 15:53:32 +01:00
Siebrand Mazeland
015bff6845
Fix name case mismatch
...
Change-Id: I82856d81f63515044633c283046f02c748fa198f
2016-03-07 15:50:43 +01:00
Umherirrender
6ec3ff74dd
Allow auto suggestion for subpages of Special:Nuke
...
The autocomplete search allows special pages to define the list of
subpages to be excepted. Fill up the function to show auto suggestion
for subpages of Special:Nuke
Change-Id: I4509bf1a6c16f7fe22a770a5c0463d76798fc3f4
2016-01-30 21:01:03 +01:00
Aaron Schulz
0f0d676a66
Define doesWrites() for SpecialPage classes
...
Bug: T123591
Change-Id: I26ea819730db7765877bc74a29a5ad0796462e40
2016-01-19 12:06:35 -08:00
Stephane Bisson
0fb0ea79cb
Hooks to extend pages retrieval and deletion
...
Bug: T115695
Change-Id: Ia9dc16b3a4a623ef213adbcf18f44b497f2d9f27
2015-12-15 08:54:22 -05:00
Albert221
43d31687e1
Resolve code invoking Title::newFromURL
...
Bug: T65424
Change-Id: Ia07fd3c51b052e34c7d537f1857e47b54a253c50
2015-12-12 00:10:06 +01:00
Reedy
2a63769238
Use $dbr->buildLike() instead of manual LIKE
...
Change-Id: I72fb24c8b7481869fab12df94ad95a037a409c0e
2015-11-30 12:24:28 +00:00
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