wikimedia/mediawiki-extensions-MobileFrontend

View on GitHub
includes/specials/SpecialUploads.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use MediaWiki\SpecialPage\RedirectSpecialPage;

/**
 * Redirect from Special:Uploads to Special:ListFiles
 *
 * @file
 * @ingroup SpecialPage
 * @codeCoverageIgnore
 */
class SpecialUploads extends RedirectSpecialPage {
    public function __construct() {
        parent::__construct( 'Uploads' );
    }

    /**
     * @inheritDoc
     */
    public function getRedirect( $subpage ) {
        return self::getTitleFor( 'Listfiles', $subpage );
    }
}