Remove superfluous variable; comment code.

This commit is contained in:
Daniel Kraus
2014-06-03 18:28:25 +02:00
parent 5bdb6cc773
commit ffb8daa1ad
2 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,8 @@
die( 'Not an entry point.' );
}
/// Provides a special page that can be used to batch-process all pages in
/// the wiki. By default, this can only be performed by sysops.
class SpecialLinkTitles extends SpecialPage {
function __construct() {
@ -33,6 +35,8 @@ class SpecialLinkTitles extends SpecialPage {
parent::__construct('LinkTitles', 'linktitles-batch');
}
/// Entry function of the special page class. Will abort if the user does
/// not have appropriate permissions ('linktitles-batch').
function execute($par) {
// Prevent non-authorized users from executing the batch processing.
if ( !$this->userCanExecute( $this->getUser() ) ) {