From 4c46ed0f4a23bd1af8ad19716b5caf345e1e1b0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 30 Sep 2005 23:40:24 +0000 Subject: [PATCH] * Removing Special:RandomFA --- includes/SpecialPage.php | 1 - includes/SpecialRandomFA.php | 48 ------------------------------------ languages/Language.php | 1 - 3 files changed, 50 deletions(-) delete mode 100644 includes/SpecialRandomFA.php diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 99788b8e12..b379a608cc 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -36,7 +36,6 @@ $wgSpecialPages = array( 'Listusers' => new SpecialPage( 'Listusers' ), 'Statistics' => new SpecialPage( 'Statistics' ), 'Random' => new SpecialPage( 'Randompage' ), - 'RandomFA' => new SpecialPage( 'RandomFA' ), 'Lonelypages' => new SpecialPage( 'Lonelypages' ), 'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ), 'Uncategorizedcategories'=> new SpecialPage( 'Uncategorizedcategories' ), diff --git a/includes/SpecialRandomFA.php b/includes/SpecialRandomFA.php deleted file mode 100644 index bec471f993..0000000000 --- a/includes/SpecialRandomFA.php +++ /dev/null @@ -1,48 +0,0 @@ -useIndexClause( 'page_random' ); - extract( $dbr->tableNames( 'page', 'pagelinks' ) ); - - $randstr = wfRandom(); - $ft = Title::newFromText( wfMsgForContent( 'featuredtemplate' ) ); - if ( is_null( $ft ) ) { - $title = Title::newFromText( wfMsgForContent( 'mainpage' ) ); - $wgOut->redirect( $title->getFullUrl() ); - return; - } - $template = $dbr->addQuotes( $ft->getDBkey() ); - $sql = " - SELECT page_title, page_random - FROM $pagelinks - LEFT JOIN $page $use_index ON page_id = pl_from - WHERE pl_title = $template AND pl_namespace = " . NS_TEMPLATE . " AND page_namespace = " . NS_TALK . " AND page_random > $randstr - ORDER BY page_random - "; - $sql = $dbr->limitResult($sql, 1, 0); - $res = $dbr->query( $sql, $fname ); - - $title = null; - if ( $s = $dbr->fetchObject( $res ) ) { - $title =& Title::makeTitle( NS_MAIN, $s->page_title ); - } - if ( is_null( $title ) ) { - # That's not supposed to happen :) - $title = Title::newFromText( wfMsgForContent( 'mainpage' ) ); - } - $wgOut->reportTime(); # for logfile - $wgOut->redirect( $title->getFullUrl() ); -} - -?> diff --git a/languages/Language.php b/languages/Language.php index 53ae7d8637..ee3b63e637 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1106,7 +1106,6 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.", 'maintenancebacklink' => 'Back to Maintenance Page', 'disambiguations' => 'Disambiguation pages', 'disambiguationspage' => 'Template:disambig', -'featuredtemplate' => 'Template:Featured', 'disambiguationstext' => "The following pages link to a disambiguation page. They should link to the appropriate topic instead.
A page is treated as disambiguation if it is linked from $1.
Links from other namespaces are not listed here.", 'doubleredirects' => 'Double redirects', 'doubleredirectstext' => "Each row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" target page, which the first redirect should point to.", -- 2.20.1