summaryrefslogtreecommitdiff
path: root/extensions/Nuke
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
commitd9022f63880ce039446fba8364f68e656b7bf4cb (patch)
tree16b40fbf17bf7c9ee6f4ead25b16dd192378050a /extensions/Nuke
parent27cf83d177256813e2e802241085fce5dd0f3fb9 (diff)
Update to MediaWiki 1.19.0
Diffstat (limited to 'extensions/Nuke')
-rw-r--r--extensions/Nuke/.gitreview5
-rw-r--r--extensions/Nuke/COPYING347
-rw-r--r--extensions/Nuke/INSTALL30
-rw-r--r--extensions/Nuke/Nuke.i18n.php107
-rw-r--r--extensions/Nuke/Nuke.php2
-rw-r--r--extensions/Nuke/Nuke_body.php40
-rw-r--r--extensions/Nuke/RELEASE-NOTES40
-rw-r--r--extensions/Nuke/ext.nuke.js2
8 files changed, 528 insertions, 45 deletions
diff --git a/extensions/Nuke/.gitreview b/extensions/Nuke/.gitreview
new file mode 100644
index 00000000..c623aede
--- /dev/null
+++ b/extensions/Nuke/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/Nuke.git
+defaultbranch=master
diff --git a/extensions/Nuke/COPYING b/extensions/Nuke/COPYING
new file mode 100644
index 00000000..f1537d13
--- /dev/null
+++ b/extensions/Nuke/COPYING
@@ -0,0 +1,347 @@
+The license text below "----" applies to all files within this distribution, other
+than those that are in a directory which contains files named "LICENSE" or
+"COPYING", or a subdirectory thereof. For those files, the license text contained in
+said file overrides any license information contained in directories of smaller depth.
+Alternative licenses are typically used for software that is provided by external
+parties, and merely packaged with the Semantic MediaWiki release for convenience.
+----
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/extensions/Nuke/INSTALL b/extensions/Nuke/INSTALL
new file mode 100644
index 00000000..5b3b93b9
--- /dev/null
+++ b/extensions/Nuke/INSTALL
@@ -0,0 +1,30 @@
+These is the install file for the Nuke extension.
+
+Extension page on mediawiki.org: https://www.mediawiki.org/wiki/Extension:Nuke
+Latest version of the install file: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Nuke/INSTALL?view=co
+
+
+== Requirements ==
+
+Nuke requires:
+
+* MediaWiki 1.18 or above
+
+== Download ==
+
+You can get the code directly from SVN. Tags can be obtained via
+
+ svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/Nuke/REL_version
+
+Where 'version' is the version number of the tag, such as 0_1 (see the available tags at http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/Nuke/).
+The latest code can be obtained from trunk:
+
+ svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Nuke/
+
+== Installation ==
+
+Once you have downloaded the code, place the ''Nuke'' directory within your MediaWiki
+'extensions' directory. Then add the following code to your [[Manual:LocalSettings.php|LocalSettings.php]] file:
+
+# Nuke
+require_once( "$IP/extensions/Nuke/Nuke.php" );
diff --git a/extensions/Nuke/Nuke.i18n.php b/extensions/Nuke/Nuke.i18n.php
index f1a63f8a..a28bcce4 100644
--- a/extensions/Nuke/Nuke.i18n.php
+++ b/extensions/Nuke/Nuke.i18n.php
@@ -37,6 +37,7 @@ Input the username or IP address to get a list of pages to delete, or leave blan
'nuke-delete-more' => '[[Special:Nuke|Delete more pages]]',
'nuke-pattern' => 'Pattern for the page name:',
'nuke-nopages-global'=> 'There are no new pages in [[Special:RecentChanges|recent changes]].',
+ 'nuke-viewchanges' => 'view changes',
);
/** Message documentation (Message documentation)
@@ -173,19 +174,19 @@ $messages['arz'] = array(
* @author Xuacu
*/
$messages['ast'] = array(
- 'nuke' => 'Esborráu masivu',
+ 'nuke' => 'Desaniciar en masa',
'action-nuke' => 'desaniciar páxines en masa',
- 'nuke-desc' => "Da a los alministradores la capacidá d'[[Special:Nuke|esborrar páxines masivamente]]",
- 'nuke-nopages' => 'Nun hai páxines nueves de [[Special:Contributions/$1|$1]] nos cambeos recientes.',
- 'nuke-list' => 'Les páxines siguientes foron creaes recién por [[Special:Contributions/$1|$1]]; escribi un comentariu y calca nel botón pa esborrales.',
- 'nuke-list-multiple' => "Les páxines darréu se crearon recientemente;
-escribi un comentariu y calca'l botón pa desaniciales.",
- 'nuke-defaultreason' => 'Esborráu masivu de páxines añadíes por $1',
- 'nuke-multiplepeople' => 'Desaniciu en masa de páxines nueves',
- 'nuke-tools' => "Esta ferramienta permite desanicios masivos de páxines añadíes recién por un usuariu o una IP determinada. Escribi'l nome d'usuariu o la IP pa obtener una llista de páxines a desaniciar, o dexa en blanco pa tolos usuarios.",
+ 'nuke-desc' => 'Da a los alministradores la capacidá de [[Special:Nuke|desaniciar páxines en masa]]',
+ 'nuke-nopages' => 'Nun hai páxines nueves de [[Special:Contributions/$1|$1]] nos cambios recientes.',
+ 'nuke-list' => '[[Special:Contributions/$1|$1]] recién creó les páxines siguientes; escribi un comentariu y calca nel botón pa desaniciales.',
+ 'nuke-list-multiple' => 'Les páxines darréu se crearon recién; escribi
+un comentariu y calca nel botón pa desaniciales.',
+ 'nuke-defaultreason' => 'Desaniciu en masa de páxines amestaes por $1',
+ 'nuke-multiplepeople' => 'Desaniciu en masa de páxines recién amestaes',
+ 'nuke-tools' => "Esta ferramienta permite desanicios en masa de páxines añadíes recién por un usuariu o una IP determinada. Escribi'l nome d'usuariu o la IP pa ver una llista de páxines a desaniciar, o dexalo balero pa tolos usuarios.",
'nuke-submit-user' => 'Dir',
'nuke-submit-delete' => 'Desaniciar seleicionaes',
- 'right-nuke' => 'Esborráu masivu de páxines',
+ 'right-nuke' => 'Desaniciu en masa de páxines',
'nuke-select' => 'Seleicionar: $1',
'nuke-userorip' => "Nome d'usuariu, direición IP o en blanco:",
'nuke-maxpages' => 'Máximu númberu de páxines:',
@@ -195,6 +196,7 @@ escribi un comentariu y calca'l botón pa desaniciales.",
'nuke-delete-more' => '[[Special:Nuke|Desaniciar más páxines]]',
'nuke-pattern' => 'Patrón pal nome de páxina:',
'nuke-nopages-global' => 'Nun hai páxines nueves nos [[Special:RecentChanges|cambios recientes]].',
+ 'nuke-viewchanges' => 'ver los cambios',
);
/** Azerbaijani (Azərbaycanca)
@@ -286,6 +288,7 @@ $messages['be-tarask'] = array(
'nuke-delete-more' => '[[Special:Nuke|Масавае выдаленьне старонак]]',
'nuke-pattern' => 'Узор для назвы старонкі:',
'nuke-nopages-global' => 'У [[Special:RecentChanges|апошніх зьменах]] больш няма новых старонак.',
+ 'nuke-viewchanges' => 'праглядзець зьмены',
);
/** Bulgarian (Български)
@@ -353,6 +356,7 @@ Merkañ ar c'homlec'h IP pe anv an implijer evit kaout roll ar pajennoù da zive
'nuke-delete-more' => '[[Special:Nuke|Diverkañ pajennoù all]]',
'nuke-pattern' => 'Patrom evit anv ar bajenn :',
'nuke-nopages-global' => "N'eus pajenn nevez ebet er [[Special:RecentChanges|c'hemmoù diwezhañ]].",
+ 'nuke-viewchanges' => "Diskouez ar c'hemmoù",
);
/** Bosnian (Bosanski)
@@ -493,7 +497,7 @@ Gib einen Kommentar bezüglich der Löschung an und klicke auf die Schaltfläche
'nuke-multiplepeople' => 'Massenlöschung kürzlich erstellter Seiten',
'nuke-tools' => 'Diese Arbeitshilfe ermöglicht die Massenlöschung von Seiten, die von einer IP-Adresse oder einem Benutzer angelegt wurden.
Gib die IP-Adresse oder den Benutzernamen ein, um eine Liste der zu löschenden Seiten zu erhalten. Sofern Du keine Angabe machst, werden alle Benutzer ausgewählt.',
- 'nuke-submit-user' => 'Hole die Liste',
+ 'nuke-submit-user' => 'Abrufen',
'nuke-submit-delete' => 'Ausgewählte Seiten löschen',
'right-nuke' => 'Massenlöschung von Seiten',
'nuke-select' => 'Auswählen: $1',
@@ -505,6 +509,7 @@ Gib die IP-Adresse oder den Benutzernamen ein, um eine Liste der zu löschenden
'nuke-delete-more' => '[[Special:Nuke|Weitere Seiten löschen]]',
'nuke-pattern' => 'Muster für den Seitennamen:',
'nuke-nopages-global' => 'Es gibt keine neuen Seiten unter den [[Special:RecentChanges|letzten Änderungen]].',
+ 'nuke-viewchanges' => 'Änderungen ansehen',
);
/** German (formal address) (‪Deutsch (Sie-Form)‬)
@@ -542,6 +547,7 @@ Silinecek sayfaların listesini almak için kullanıcı adını ya da IPyi girin
*/
$messages['dsb'] = array(
'nuke' => 'Masowe lašowanje',
+ 'action-nuke' => 'Boki z masami lašowaś',
'nuke-desc' => 'Zmóžnja admininistratoram boki [[Special:Nuke|z masami lašowaś]]',
'nuke-nopages' => 'Žedne nowe boki wót [[Special:Contributions/$1|$1]] w aktualnych změnach',
'nuke-list' => 'Slědujuce boki su se nowo napórali wót [[Special:Contributions/$1|$1]];
@@ -549,7 +555,7 @@ zapódaj komentar a klikni na tłocašk, aby je lašował.',
'nuke-list-multiple' => 'Slědujuce boki su se rowno napórali;
zapódaj komentar a klikni na tłocašk, aby je wulašował.',
'nuke-defaultreason' => 'Masowe lašowanje bokow, kótarež $1 jo pśidał.',
- 'nuke-multiplepeople' => 'někotare wužywarje',
+ 'nuke-multiplepeople' => 'Masowe wulašowanje njedawno pśidanych bokow',
'nuke-tools' => 'Toś ten rěd zmóžnja masowe lašowanja bokow, kótarež wěsty wužywaŕ abo IP jo rowno pśidał. Zapódaj wužywarske mě abo IP-adresu, aby dostał lisćinu bokow, kótarež maju se lašowaś abo wóstaj pólo prozne, aby wubrał wšych wužywarjow.',
'nuke-submit-user' => 'W pórěźe',
'nuke-submit-delete' => 'Wubrane wulašowaś',
@@ -561,6 +567,9 @@ zapódaj komentar a klikni na tłocašk, aby je wulašował.',
'nuke-deleted' => "Bok '''$1''' jo se wulašował.",
'nuke-not-deleted' => "Bok [[:$1]] '''njejo dał''' se wulašowaś.",
'nuke-delete-more' => '[[Special:Nuke|Dalšne boki lašowaś]]',
+ 'nuke-pattern' => 'Pśikład za bokowe mě:',
+ 'nuke-nopages-global' => 'Njejsu žedne nowe boki w [[Special:RecentChanges|aktualnych změnach]].',
+ 'nuke-viewchanges' => 'změny pokazaś',
);
/** Ewe (Eʋegbe) */
@@ -625,6 +634,7 @@ Enigu la salutnomon aŭ IP-adreson por akiri liston de paĝoj forigi, aŭ lasu
/** Spanish (Español)
* @author Aleator
+ * @author Armando-Martin
* @author Crazymadlover
* @author DJ Nietzsche
* @author Dferg
@@ -658,6 +668,7 @@ Introduzca el nombre de usuario o la dirección IP para obtener la lista de pág
'nuke-delete-more' => '[[Special:Nuke|Borrar más páginas]]',
'nuke-pattern' => 'Patrón del título de la página:',
'nuke-nopages-global' => 'No hay nuevas páginas en los [[Special:RecentChanges|cambios recientes]].',
+ 'nuke-viewchanges' => 'Mostrar cambios',
);
/** Estonian (Eesti)
@@ -730,6 +741,7 @@ $messages['fa'] = array(
'nuke-delete-more' => '[[Special:Nuke|حذف صفحه‌های بیشتر]]',
'nuke-pattern' => 'الگو برای نام صفحه:',
'nuke-nopages-global' => 'هیچ صفحهٔ جدیدی در [[Special:RecentChanges|فهرست تغییرات اخیر]] نیست.',
+ 'nuke-viewchanges' => 'نمایش تغییرات',
);
/** Finnish (Suomi)
@@ -775,6 +787,7 @@ Kirjoita käyttäjänimi tai IP-osoite, niin saat listan poistettavista sivuista
* @author Peter17
* @author Seb35
* @author Sherbrooke
+ * @author Wyz
* @author Zetud
*/
$messages['fr'] = array(
@@ -800,6 +813,7 @@ entrez un commentaire et cliquez sur le bouton pour les supprimer.',
'nuke-delete-more' => '[[Special:Nuke|Supprimer plus de pages]]',
'nuke-pattern' => 'Modèle pour le nom de page:',
'nuke-nopages-global' => "Il n'y a pas de nouvelle page dans [[Special:RecentChanges|changements récents]].",
+ 'nuke-viewchanges' => 'voir les modifications',
);
/** Franco-Provençal (Arpetan)
@@ -869,6 +883,7 @@ Introduza o nome do usuario ou enderezo IP para obter unha lista das páxinas pa
'nuke-delete-more' => '[[Special:Nuke|Borrar máis páxinas]]',
'nuke-pattern' => 'Patrón para o nome de páxina:',
'nuke-nopages-global' => 'Non hai páxinas novas nos [[Special:RecentChanges|cambios recentes]].',
+ 'nuke-viewchanges' => 'ollar os cambios',
);
/** Ancient Greek (Ἀρχαία ἑλληνικὴ)
@@ -937,7 +952,7 @@ $messages['he'] = array(
'nuke-list-multiple' => 'הדפים הבאים נוצרו לאחרונה;
אנא כתבו נימוק למחיקה ולחצו על הכפתור כדי למחוק אותם.',
'nuke-defaultreason' => 'הסרה מרובה של דפים שנוספו על ידי $1',
- 'nuke-multiplepeople' => 'משתמשים מרובים',
+ 'nuke-multiplepeople' => 'מחיקה מרובה של דפים שנוספו לאחרונה',
'nuke-tools' => 'כלי זה מאפשר מחיקות המוניות של דפים שנוספו לאחרונה על ידי משתמש או כתובת IP מסוימים.
כתבו את שם המשתמש או כתובת ה־IP כדי לקבל את רשימת הדפים למחיקה או השאירו את השדה הזה ריק עבור כל המשתמשים.',
'nuke-submit-user' => 'הצגה',
@@ -952,6 +967,7 @@ $messages['he'] = array(
'nuke-delete-more' => '[[Special:Nuke|למחוק עוד דפים]]',
'nuke-pattern' => 'תבנית עבור שם הדף:',
'nuke-nopages-global' => 'אין דפים חדשים ב[[Special:RecentChanges|שינויים אחרונים]].',
+ 'nuke-viewchanges' => 'הצגת שינויים',
);
/** Hindi (हिन्दी)
@@ -1006,7 +1022,7 @@ $messages['hr'] = array(
*/
$messages['hsb'] = array(
'nuke' => 'Masowe wušmórnjenje',
- 'action-nuke' => 'Strony zhašeć',
+ 'action-nuke' => 'Strony z masami zhašeć',
'nuke-desc' => 'Zmóžnja administratoram [[Special:Nuke|masowe wušmórnjenje]] stronow',
'nuke-nopages' => 'W poslednich změnach njejsu nowe strony z [[Special:Contributions/$1|$1]].',
'nuke-list' => 'Slědowace strony buchu runje přez [[Special:Contributions/$1|$1]] wutworjene; zapodaj komentar a klikń na tłóčatko wušmórnjenja.',
@@ -1027,6 +1043,7 @@ napisaj komentar a klikń na tłóčatko, zo by je wušmórnył.',
'nuke-delete-more' => '[[Special:Nuke|Dalše strony wušmórnyć]]',
'nuke-pattern' => 'Přikład za mjeno strony:',
'nuke-nopages-global' => 'Njejsu žane nowe strony w [[Special:RecentChanges|aktualnych změnach]].',
+ 'nuke-viewchanges' => 'změny pokazać',
);
/** Hungarian (Magyar)
@@ -1082,6 +1099,7 @@ Entra le nomine de usator o adresse IP pro obtener un lista de paginas a deler,
'nuke-delete-more' => '[[Special:Nuke|Deler plus paginas]]',
'nuke-pattern' => 'Patrono pro le nomine de pagina:',
'nuke-nopages-global' => 'Il non ha nove paginas in le [[Special:RecentChanges|modificationes recente]].',
+ 'nuke-viewchanges' => 'vider modificationes',
);
/** Indonesian (Bahasa Indonesia)
@@ -1216,6 +1234,7 @@ Inserisci il nome utente o l'indirizzo IP per la lista delle pagine da cancellar
'nuke-delete-more' => '[[Special:Nuke|Cancella più pagine]]',
'nuke-pattern' => 'Modello per il titolo della pagina:',
'nuke-nopages-global' => 'Non ci sono nuove pagine negli [[Special:RecentChanges|ultimi cambiamenti]].',
+ 'nuke-viewchanges' => 'vedi modifiche',
);
/** Japanese (日本語)
@@ -1223,32 +1242,39 @@ Inserisci il nome utente o l'indirizzo IP per la lista delle pagine da cancellar
* @author Fievarsty
* @author Hosiryuhosi
* @author JtFuruhata
+ * @author Marine-Blue
* @author Muttley
* @author Ohgi
* @author Schu
+ * @author Shirayuki
* @author 青子守歌
*/
$messages['ja'] = array(
'nuke' => '一括削除',
- 'nuke-desc' => '{{int:group-sysop}}がページを[[Special:Nuke|一括削除]]できる機能を提供します。',
- 'nuke-nopages' => '最近の更新ページに[[Special:Contributions/$1|$1]]が新規作成したページはありません。',
- 'nuke-list' => '以下は、[[Special:Contributions/$1|$1]] によって最近作成されたページの一覧です;
-理由を記入しボタンを押すと、これらは削除されます。',
+ 'action-nuke' => 'ページを一括削除',
+ 'nuke-desc' => '{{int:group-sysop}}がページを[[Special:Nuke|一括削除]]する機能を提供します。',
+ 'nuke-nopages' => '最近の更新に[[Special:Contributions/$1|$1]]が新規作成したページはありません。',
+ 'nuke-list' => '[[Special:Contributions/$1|$1]] は最近、以下のページを作成しました;
+これらを削除するには、理由を記入してボタンを押してください。',
'nuke-list-multiple' => '最近作成されたページが表示されています。
コメントを入力し、ボタンを押すと、削除されます。',
- 'nuke-defaultreason' => '$1 によって加えられたページを一括削除',
- 'nuke-multiplepeople' => '複数の利用者',
- 'nuke-tools' => 'このツールを使うと、指定した利用者またはIPアドレスによって最近作成されたページを、まとめて削除することができます。
-利用者名またはIPアドレスを入力すると、削除対象ページの一覧が生成されます。空にすると、すべての利用者によるものが対象になります。',
+ 'nuke-defaultreason' => '$1が追加したページの一括削除',
+ 'nuke-multiplepeople' => '最近追加されたページの一括削除',
+ 'nuke-tools' => '指定した利用者またはIPアドレスが最近作成したページを、このツールで一括削除できます。
+利用者名またはIPアドレスを入力すると、削除対象ページの一覧が生成されます。空にすると全利用者が対象になります。',
'nuke-submit-user' => '一覧取得',
'nuke-submit-delete' => '選択されたページを削除',
- 'right-nuke' => 'ページの一括削除',
+ 'right-nuke' => 'ページを一括削除',
'nuke-select' => '選択:$1',
'nuke-userorip' => '利用者名、IP アドレスまたは空白:',
- 'nuke-maxpages' => 'ページの最大量:',
- 'nuke-editby' => '[[Special:Contributions/$1|$1]]によって作成',
- 'nuke-deleted' => "ページ '''$1''' は削除されています。",
- 'nuke-not-deleted' => "Page [[:$1]] は削除'''出来ません''' 。",
+ 'nuke-maxpages' => '最大ページ数:',
+ 'nuke-editby' => '[[Special:Contributions/$1|$1]]が作成',
+ 'nuke-deleted' => "ページ '''$1''' は削除されました。",
+ 'nuke-not-deleted' => "ページ [[:$1]] を削除'''できませんでした''' 。",
+ 'nuke-delete-more' => '[[Special:Nuke|他のページも削除]]',
+ 'nuke-pattern' => 'ページ名のパターン:',
+ 'nuke-nopages-global' => '[[Special:RecentChanges|最近の更新]]には新しいページはありません。',
+ 'nuke-viewchanges' => '差分を表示',
);
/** Jutish (Jysk)
@@ -1285,6 +1311,7 @@ Lebokna jeneng panganggo utawa alamat IP kanggo olèh daftar kaca-kaca sing bisa
/** Georgian (ქართული)
* @author Alsandro
* @author BRUTE
+ * @author David1010
* @author Dawid Deutschland
* @author Sopho
*/
@@ -1301,6 +1328,10 @@ $messages['ka'] = array(
'nuke-submit-delete' => 'არჩეულის წაშლა',
'right-nuke' => 'გვერდების მასობრივად წაშლა',
'nuke-select' => 'აირჩიეთ: $1',
+ 'nuke-userorip' => 'მომხმარებლის სახელი, IP-მისამართი (შესაძლებელია ცარიელის დატოვება):',
+ 'nuke-maxpages' => 'გვერდების მაქსიმალური რაოდენობა:',
+ 'nuke-deleted' => "გვერდი '''$1''' წაიშალა.",
+ 'nuke-not-deleted' => "გვერდი [[:$1]] წაშლა '''შეუძლებელია'''.",
);
/** Khmer (ភាសាខ្មែរ)
@@ -1431,6 +1462,7 @@ Gitt w.e.g. d'IP-Adress respektiv de Benotzer n fir eng Lescht vun de Säiten ze
'nuke-delete-more' => '[[Special:Nuke|Méi Säite läschen]]',
'nuke-pattern' => 'Muster fir de Säitennumm:',
'nuke-nopages-global' => 'Et si keng nei Säiten an de [[Special:RecentChanges|rezenten Ännerungen]].',
+ 'nuke-viewchanges' => 'Ännerunge weisen',
);
/** Limburgish (Limburgs)
@@ -1523,6 +1555,7 @@ $messages['mk'] = array(
'nuke-delete-more' => '[[Special:Nuke|Избриши уште страници]]',
'nuke-pattern' => 'Мостра за име на страница:',
'nuke-nopages-global' => 'Нема нови страници во [[Special:RecentChanges|скорешните промени]].',
+ 'nuke-viewchanges' => 'прикажи промени',
);
/** Malayalam (മലയാളം)
@@ -1598,6 +1631,7 @@ Isikan nama pengguna atau alamat IP untuk mendapat senarai laman yang hendak dik
'nuke-delete-more' => '[[Special:Nuke|Hapuskan lebih banyak laman]]',
'nuke-pattern' => 'Pola nama laman:',
'nuke-nopages-global' => 'Tiada laman baru dalam [[Special:RecentChanges|perubahan terkini]].',
+ 'nuke-viewchanges' => 'lihat perubahan',
);
/** Maltese (Malti)
@@ -1734,6 +1768,7 @@ Voer de gebruikersnaam of het IP-adres in voor een lijst van te verwijderen pagi
'nuke-delete-more' => "[[Special:Nuke|Meer pagina's verwijderen]]",
'nuke-pattern' => 'Patroon voor de paginanaam:',
'nuke-nopages-global' => "Er zijn geen nieuwe pagina's in de [[Special:RecentChanges|recente wijzigingen]].",
+ 'nuke-viewchanges' => 'wijzigingen bekijken',
);
/** Norwegian Nynorsk (‪Norsk (nynorsk)‬)
@@ -1824,6 +1859,8 @@ $messages['pdc'] = array(
);
/** Polish (Polski)
+ * @author Beau
+ * @author BeginaFelicysym
* @author Derbeth
* @author Leinad
* @author Nux
@@ -1839,7 +1876,7 @@ $messages['pl'] = array(
'nuke-list-multiple' => 'Poniższa lista przedstawia ostatnio dodane strony.
Wpisz powód, a następnie zatwierdź usunięcie stron.',
'nuke-defaultreason' => 'Masowe usunięcie stron dodanych przez $1',
- 'nuke-multiplepeople' => 'Masowe usuwanie ostatnio dodanych stron',
+ 'nuke-multiplepeople' => 'Masowe usuwanie ostatnio utworzonych stron',
'nuke-tools' => 'Narzędzie pozwala na masowe usuwanie stron ostatnio dodanych przez zarejestrowanego lub anonimowego użytkownika.
Wpisz nazwę użytkownika lub adres IP by otrzymać listę stron do usunięcia. Możesz także nic nie wpisywać, wtedy będzie można masowo usunąć wkład wszystkich użytkowników.',
'nuke-submit-user' => 'Dalej',
@@ -1852,8 +1889,9 @@ Wpisz nazwę użytkownika lub adres IP by otrzymać listę stron do usunięcia.
'nuke-deleted' => "Strona '''$1''' została usunięta.",
'nuke-not-deleted' => "Strony [[:$1]] '''nie można''' usunąć.",
'nuke-delete-more' => '[[Special:Nuke|Usuń więcej stron]]',
- 'nuke-pattern' => 'Wzór dla nazwy strony:',
+ 'nuke-pattern' => 'Wzór nazwy strony:',
'nuke-nopages-global' => 'Brak nowych stron w [[Special:RecentChanges|ostatnich zmianach]].',
+ 'nuke-viewchanges' => 'widok zmian',
);
/** Piedmontese (Piemontèis)
@@ -1884,6 +1922,7 @@ ch'a buta un coment e ch'a sgnaca ël boton për scanceleje.",
'nuke-delete-more' => "[[Special:Nuke|Scancelé pì 'd pàgine]]",
'nuke-pattern' => 'Model për ël nòm ëd pàgina:',
'nuke-nopages-global' => "A-i é pa 'd pàgine neuve an [[Special:RecentChanges|ùltime modìfiche]].",
+ 'nuke-viewchanges' => 'varda modìfiche',
);
/** Pashto (پښتو)
@@ -1931,6 +1970,7 @@ introduza um comentário e clique o botão para eliminá-las.',
);
/** Brazilian Portuguese (Português do Brasil)
+ * @author 555
* @author Carla404
* @author Eduardo.mps
* @author Giro720
@@ -1944,7 +1984,7 @@ $messages['pt-br'] = array(
'nuke-list-multiple' => 'As seguintes páginas foram criadas recentemente;
introduza um comentário e clique o botão para eliminá-las.',
'nuke-defaultreason' => 'Eliminação em massa de páginas criadas por $1',
- 'nuke-multiplepeople' => 'vários usuários',
+ 'nuke-multiplepeople' => 'Eliminação em massa de páginas recentemente adicionadas',
'nuke-tools' => 'Esta ferramenta permite a eliminação em massa de páginas criadas recentemente por um usuário ou IP específico.
Forneça o nome de usuário ou o IP para obter a lista de páginas a eliminar, ou deixe em branco para todos os usuários.',
'nuke-submit-user' => 'Ir',
@@ -2045,6 +2085,7 @@ Mitte 'u nome de l'utende o l'indirizze IP pe avè 'n'elenghe de le pàggene de
);
/** Russian (Русский)
+ * @author DR
* @author Eugrus
* @author HalanTul
* @author KPu3uC B Poccuu
@@ -2075,6 +2116,7 @@ $messages['ru'] = array(
'nuke-delete-more' => '[[Special:Nuke|Множественное удаление страниц]]',
'nuke-pattern' => 'Шаблон для имени страницы:',
'nuke-nopages-global' => 'В [[Special:RecentChanges|недавних изменениях]] нет новых страниц.',
+ 'nuke-viewchanges' => 'Внесённые изменения',
);
/** Rusyn (Русиньскый)
@@ -2215,6 +2257,7 @@ Vnesite uporabniško ime ali IP, da pridobite seznam strani za izbris, ali pusti
'nuke-delete-more' => '[[Special:Nuke|Izbriši več strani]]',
'nuke-pattern' => 'Vzorec imena strani:',
'nuke-nopages-global' => 'V [[Special:RecentChanges|zadnjih spremembah]] ni novih strani.',
+ 'nuke-viewchanges' => 'ogled sprememb',
);
/** Serbian (Cyrillic script) (‪Српски (ћирилица)‬)
@@ -2543,6 +2586,7 @@ Hãy nhập tên thành viên hoặc địa chỉ IP để lấy danh sách các
'nuke-delete-more' => '[[Special:Nuke|Xóa thêm trang]]',
'nuke-pattern' => 'Mẫu tên trang:',
'nuke-nopages-global' => 'Không có trang mới trong các [[Special:RecentChanges|thay đổi gần đây]].',
+ 'nuke-viewchanges' => 'xem thay đổi',
);
/** Volapük (Volapük)
@@ -2592,12 +2636,13 @@ $messages['yue'] = array(
* @author PhiLiP
* @author Shinjiman
* @author Xiaomingyan
+ * @author Yfdyh000
* @author 阿pp
*/
$messages['zh-hans'] = array(
'nuke' => '大量删除',
'action-nuke' => '大量删除页面',
- 'nuke-desc' => '让管理员可以[[Special:Nuke|大量删除]]页面',
+ 'nuke-desc' => '让管理员可以[[Special:Nuke|批量删除]]页面',
'nuke-nopages' => '在最近更改中没有[[Special:Contributions/$1|$1]]创建的新页面。',
'nuke-list' => '以下为[[Special:Contributions/$1|$1]]最近创建的页面,请填写注释并点击按钮删除它们。',
'nuke-list-multiple' => '以下为最近创建的页面,请填写注释并点击按钮删除它们。',
diff --git a/extensions/Nuke/Nuke.php b/extensions/Nuke/Nuke.php
index 70b31291..64ae4fe3 100644
--- a/extensions/Nuke/Nuke.php
+++ b/extensions/Nuke/Nuke.php
@@ -4,7 +4,7 @@ if( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
-define( 'Nuke_VERSION', '1.1.3' );
+define( 'Nuke_VERSION', '1.1.4' );
$dir = dirname(__FILE__) . '/';
diff --git a/extensions/Nuke/Nuke_body.php b/extensions/Nuke/Nuke_body.php
index 4fdc0809..fbe4f56e 100644
--- a/extensions/Nuke/Nuke_body.php
+++ b/extensions/Nuke/Nuke_body.php
@@ -7,14 +7,18 @@ class SpecialNuke extends SpecialPage {
}
public function execute( $par ) {
- if( !$this->userCanExecute( $this->getUser() ) ) {
+ if ( !$this->userCanExecute( $this->getUser() ) ) {
$this->displayRestrictionError();
- return;
}
-
$this->setHeaders();
$this->outputHeader();
+ if ( $this->getUser()->isBlocked() ) {
+ $block = $this->getUser()->getBlock();
+ throw new UserBlockedError( $block );
+ }
+ $this->checkReadOnly();
+
$req = $this->getRequest();
$target = trim( $req->getText( 'target', $par ) );
@@ -161,15 +165,15 @@ class SpecialNuke extends SpecialPage {
/**
* @var $title Title
*/
- list( $title, $edits, $userName ) = $info;
+ list( $title, $userName ) = $info;
$image = $title->getNamespace() == NS_IMAGE ? wfLocalFile( $title ) : false;
$thumb = $image && $image->exists() ? $image->transform( array( 'width' => 120, 'height' => 120 ), 0 ) : false;
- $changes = wfMsgExt( 'nchanges', 'parsemag', $this->getLanguage()->formatNum( $edits ) );
-
$out->addHTML( '<li>' .
- Xml::check( 'pages[]', true,
+ Xml::check(
+ 'pages[]',
+ true,
array( 'value' => $title->getPrefixedDbKey() )
) .
'&#160;' .
@@ -177,7 +181,12 @@ class SpecialNuke extends SpecialPage {
Linker::linkKnown( $title ) .
'&#160;(' .
( $userName ? wfMsgExt( 'nuke-editby', 'parseinline', $userName ) . ',&#160;' : '' ) .
- Linker::linkKnown( $title, $changes, array(), array('action' => 'history' ) ) .
+ Linker::linkKnown(
+ $title,
+ wfMsg( 'nuke-viewchanges' ),
+ array(),
+ array( 'action' => 'history' )
+ ) .
")</li>\n" );
}
@@ -203,7 +212,6 @@ class SpecialNuke extends SpecialPage {
'rc_namespace',
'rc_title',
'rc_timestamp',
- 'COUNT(*) AS edits'
);
$where = array( "(rc_new = 1) OR (rc_log_type = 'upload' AND rc_log_action = 'upload')" );
@@ -218,6 +226,7 @@ class SpecialNuke extends SpecialPage {
if ( !is_null( $pattern ) && trim( $pattern ) !== '' ) {
$where[] = 'rc_title LIKE ' . $dbr->addQuotes( $pattern );
}
+ $group = implode( ', ', $what );
$result = $dbr->select( 'recentchanges',
$what,
@@ -225,7 +234,7 @@ class SpecialNuke extends SpecialPage {
__METHOD__,
array(
'ORDER BY' => 'rc_timestamp DESC',
- 'GROUP BY' => 'rc_namespace, rc_title',
+ 'GROUP BY' => $group,
'LIMIT' => $limit
)
);
@@ -235,8 +244,7 @@ class SpecialNuke extends SpecialPage {
foreach ( $result as $row ) {
$pages[] = array(
Title::makeTitle( $row->rc_namespace, $row->rc_title ),
- $row->edits,
- $username == '' ? $row->rc_user_text : false
+ $username === '' ? $row->rc_user_text : false
);
}
@@ -255,6 +263,13 @@ class SpecialNuke extends SpecialPage {
foreach( $pages as $page ) {
$title = Title::newFromURL( $page );
$file = $title->getNamespace() == NS_FILE ? wfLocalFile( $title ) : false;
+
+ $permission_errors = $title->getUserPermissionsErrors( 'delete', $this->getUser());
+
+ if ( count( $permission_errors )) {
+ throw new PermissionsError( 'delete', $permission_errors );
+ }
+
if ( $file ) {
$oldimage = null; // Must be passed by reference
$ok = FileDeleteForm::doDelete( $title, $file, $oldimage, $reason, false )->isOK();
@@ -262,6 +277,7 @@ class SpecialNuke extends SpecialPage {
$article = new Article( $title, 0 );
$ok = $article->doDeleteArticle( $reason );
}
+
if ( $ok ) {
$res[] = wfMsgExt( 'nuke-deleted', array( 'parseinline' ), $title->getPrefixedText() );
} else {
diff --git a/extensions/Nuke/RELEASE-NOTES b/extensions/Nuke/RELEASE-NOTES
new file mode 100644
index 00000000..56de5b99
--- /dev/null
+++ b/extensions/Nuke/RELEASE-NOTES
@@ -0,0 +1,40 @@
+These are the release notes for the Nuke extension.
+
+Extension page on mediawiki.org: https://www.mediawiki.org/wiki/Extension:Nuke
+Latest version of the release notes: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Nuke/RELEASE-NOTES?view=co
+
+=== Version 1.1.5 ==
+(2012-03-14)
+* (bug 35214) Special:Nuke allows deletions even when blocked
+* (bug 16985) Show number of recent edits in Special:Nuke
+* (bug 23600) Nuke extension w/PostgreSQL: column "recentchanges.rc_timestamp" should be in GROUP BY
+
+=== Version 1.1.4 ===
+(2012-2-12)
+
+* Changed "n changes" links by "view changes" links, since the edit count was broken and cannot be made to work nicely.
+
+=== Version 1.1.3 ===
+(2012-01-11)
+
+* Modernizing of some of the code to make use of newly introduced features.
+
+=== Version 1.1.2 ===
+(2011-11-10)
+
+* Implemented sql like match feature as suggested in bug 5835.
+* Removed inline JavaScript and make use of jQuery loaded via the resource loader instead.
+* Modernizing of some of the code to make use of newly introduced features.
+* Compatibility with MediaWiki < 1.18 broken.
+
+=== Version 1.1.1 ===
+(2011-10-19)
+
+* Do not show author names when filtering on a single author.
+* Added "delete more pages" link.
+* Fixed Special:Nuke/authorname behaviour.
+
+=== Version 1.1 ===
+(2011-2-14)
+
+* Added a changable limit and the option to not filter the recent changes on a single user.
diff --git a/extensions/Nuke/ext.nuke.js b/extensions/Nuke/ext.nuke.js
index c3260946..04677a68 100644
--- a/extensions/Nuke/ext.nuke.js
+++ b/extensions/Nuke/ext.nuke.js
@@ -1,5 +1,5 @@
/**
- * JavasSript for the Nuke MediaWiki extension.
+ * JavaScript for the Nuke MediaWiki extension.
* @see https://www.mediawiki.org/wiki/Extension:Nuke
*
* @licence GNU GPL v2 or later