'Specialpages' => array( 'UnlistedSpecialPage', 'Specialpages' ),
'Contributions' => array( 'SpecialPage', 'Contributions' ),
'Emailuser' => array( 'UnlistedSpecialPage', 'Emailuser' ),
- 'Whatlinkshere' => array( 'UnlistedSpecialPage', 'Whatlinkshere' ),
- 'Recentchangeslinked' => array( 'UnlistedSpecialPage', 'Recentchangeslinked' ),
+ 'Whatlinkshere' => array( 'SpecialPage', 'Whatlinkshere' ),
+ 'Recentchangeslinked' => array( 'SpecialPage', 'Recentchangeslinked' ),
'Movepage' => array( 'UnlistedSpecialPage', 'Movepage' ),
'Blockme' => array( 'UnlistedSpecialPage', 'Blockme' ),
'Resetpass' => array( 'UnlistedSpecialPage', 'Resetpass' ),
* @param string $par parent page we will look at
*/
function wfSpecialRecentchangeslinked( $par = NULL ) {
- global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest, $wgTitle;
+ global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest, $wgTitle, $wgScript;
$fname = 'wfSpecialRecentchangeslinked';
$days = $wgRequest->getInt( 'days' );
$wgOut->setPagetitle( wfMsg( 'recentchangeslinked' ) );
$sk = $wgUser->getSkin();
- if (is_null($target)) {
- $wgOut->showErrorPage( 'notargettitle', 'notargettext' );
+ $wgOut->addHTML(
+ Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) .
+ Xml::openElement( 'fieldset' ) .
+ Xml::element( 'legend', array(), wfMsg( 'recentchangeslinked' ) ) . "\n" .
+ Xml::inputLabel( wfMsg( 'recentchangeslinked-page' ), 'target', 'recentchangeslinked-target', 40, $target ) .
+ Xml::hidden( 'title', $wgTitle->getPrefixedText() ). "\n" .
+ Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
+ Xml::closeElement( 'fieldset' ) .
+ Xml::closeElement( 'form' ) . "\n"
+ );
+
+ if ( !$target ) {
return;
}
$nt = Title::newFromURL( $target );
# Recent changes linked
'recentchangeslinked' => 'Related changes',
-'recentchangeslinked-title' => 'Changes related to $1',
+'recentchangeslinked-title' => 'Changes related to "$1"',
'recentchangeslinked-noresult' => 'No changes on linked pages during the given period.',
'recentchangeslinked-summary' => "This special page lists the last changes on pages who are linked.
Pages on your watchlist are '''bold'''.",
+'recentchangeslinked-page' => 'Page name',
# Upload
'upload' => 'Upload file',
'recentchangeslinked-title',
'recentchangeslinked-noresult',
'recentchangeslinked-summary',
+ 'recentchangeslinked-page',
),
'upload' => array(
'upload',