8 * Querypage that lists the most wanted files - implements Special:Wantedfiles
10 * @ingroup SpecialPage
12 * @author Soxred93 <soxred93@gmail.com>
13 * @copyright Copyright © 2008, Soxred93
14 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
16 class WantedFilesPage
extends WantedQueryPage
{
23 $dbr = wfGetDB( DB_SLAVE
);
24 list( $imagelinks, $page ) = $dbr->tableNamesN( 'imagelinks', 'page' );
25 $name = $dbr->addQuotes( $this->getName() );
30 " . NS_FILE
. " as namespace,
34 LEFT JOIN $page ON il_to = page_title AND page_namespace = ". NS_FILE
."
35 WHERE page_title IS NULL
44 function wfSpecialWantedFiles() {
45 list( $limit, $offset ) = wfCheckLimits();
47 $wpp = new WantedFilesPage();
49 $wpp->doQuery( $offset, $limit );